Skip to content

Commit

Permalink
Minor tweaks to the api app.
Browse files Browse the repository at this point in the history
  • Loading branch information
davorg committed Jan 19, 2016
1 parent 29ae8f2 commit 7e5c165
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bin/api.psgi
Expand Up @@ -27,19 +27,20 @@ use FindBin '$Bin';
use lib "$Bin/../lib";
use Lystyng::Schema;

$ENV{WEBAPI_DBIC_HTTP_AUTH_TYPE} //= 'none';
$ENV{WEBAPI_DBIC_WRITABLE} //= 0;

my $hal_app = Plack::App::File->new(
root => Alien::Web::HalBrowser->dir
)->to_app;

$ENV{WEBAPI_DBIC_HTTP_AUTH_TYPE} //= 'none';

my $schema = Lystyng::Schema->get_schema;

my $app = WebAPI::DBIC::WebApp->new({
routes => [ map( $schema->source($_), $schema->sources) ]
})->to_psgi_app;

my $app_prefix = "/webapi-dbic";
my $app_prefix = "/api";

builder {
enable "SimpleLogger"; # show on STDERR
Expand Down

0 comments on commit 7e5c165

Please sign in to comment.