]> git.ktnx.net Git - lsl.git/blob - bin/app.psgi
820846c72e9a001d501278306dce38a2b1aa5549
[lsl.git] / bin / app.psgi
1 #!/usr/bin/perl
2
3 use strict;
4 use warnings;
5 use FindBin;
6 use lib "$FindBin::Bin/../lib";
7
8
9 =begin comment
10 # use this block if you don't need middleware, and only have a single target Dancer app to run here
11 use App::LazyShoppingList::API;
12
13 App::LazyShoppingList::API->to_app;
14
15 =end comment
16
17 =begin comment
18 # use this block if you want to include middleware such as Plack::Middleware::Deflater
19
20 use App::LazyShoppingList::API;
21 use Plack::Builder;
22
23 builder {
24     enable 'Deflater';
25     App::LazyShoppingList::API->to_app;
26 }
27
28 =end comment
29
30 =cut
31
32 # use this block if you want to mount several applications on different path
33
34 use App::LazyShoppingList::API::v1;
35 #use App::LazyShoppingList::WEB;
36
37 use Plack::Builder;
38
39 builder {
40     mount '/api/v1'    => App::LazyShoppingList::API::v1->to_app;
41     #    mount '/'       => App::REST::LazyShoppingList::WEB->to_app;
42 }
43
44