6 use lib "$FindBin::Bin/../lib";
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;
13 App::LazyShoppingList::API->to_app;
18 # use this block if you want to include middleware such as Plack::Middleware::Deflater
20 use App::LazyShoppingList::API;
25 App::LazyShoppingList::API->to_app;
32 # use this block if you want to mount several applications on different path
34 use App::LazyShoppingList::API::v1;
35 #use App::LazyShoppingList::WEB;
40 mount '/api/v1' => App::LazyShoppingList::API::v1->to_app;
41 # mount '/' => App::REST::LazyShoppingList::WEB->to_app;