diff --git a/Build.PL b/Build.PL index 5721bf8..6b7645f 100644 --- a/Build.PL +++ b/Build.PL @@ -21,6 +21,8 @@ my $build = Module::Build->new( 'JSON' => 0, 'YAML' => 0, 'Capture::Tiny' => 0, + 'Email::Valid' => 0, + 'Crypt::Bcrypt' => 0, }, install_path => { 'templates' => "$HOME/.local/share/peace/template", diff --git a/MYMETA.json b/MYMETA.json index 4c40b0c..8ccecc7 100644 --- a/MYMETA.json +++ b/MYMETA.json @@ -16,16 +16,21 @@ "prereqs" : { "runtime" : { "requires" : { + "Capture::Tiny" : "0", + "Crypt::Bcrypt" : "0", "DBD::Mock" : "0", "DBD::Pg" : "0", "DBI" : "0", "DateTime" : "0", "DateTime::Format::Pg" : "0", + "Email::Valid" : "0", + "JSON" : "0", "Mojolicious" : "0", "Test::MockModule" : "0", "Test::MockObject" : "0", "Test::Most" : "0", - "Test::Pod::Coverage" : "0" + "Test::Pod::Coverage" : "0", + "YAML" : "0" } } }, diff --git a/bin/peace b/bin/peace index b22c414..9a94ce1 100755 --- a/bin/peace +++ b/bin/peace @@ -69,7 +69,7 @@ if ( !-e $config_path) { path ($config_path)->spew_utf8(encode_json $config); } -Peace::DB->dbh( config => Peace->new->config ); +Peace::DB->dbh( config => Peace->new->peace_config ); @ARGV = ('daemon'); # Start command line interface for application diff --git a/doc/index.html b/doc/index.html index 03ea7cc..9d9a655 100644 --- a/doc/index.html +++ b/doc/index.html @@ -8,6 +8,9 @@
For internal usage from Mojolicious.
+my $config = Peace->new->peace_config;
+
+Retrieves the config for the peace application.
+ + + + + + +Peace::Controller::Developer - Developer's http endpoint.
+ +# This object is used by mojolicious.
+
+Peace::Controller::Developer allows to interact using a json http api with the Peace::Model::Developer objects in Peace.
+ +Peace::Controller::Developer implements the following methods:
+ +# To be used by mojolicious.
+
+Creates a Developer in db with the data given by the user.
+ +diff --git a/doc/lib/Peace/Controller/Developer.pm.html b/doc/lib/Peace/Controller/Developer.pm.html new file mode 100644 index 0000000..0f6d6b1 --- /dev/null +++ b/doc/lib/Peace/Controller/Developer.pm.html @@ -0,0 +1,57 @@ + + + +
+
+ + + + +
+ +