t* my version of playonbsd.com data URI git clone git://git.codevoid.de/playonbsd-sdk.git DIR Log DIR Files DIR Refs DIR README --- tapp.psgi (725B) --- 1 #!/usr/bin/env perl 2 3 use strict; 4 use warnings; 5 use FindBin; 6 use lib "$FindBin::Bin/../lib"; 7 8 9 # use this block if you don't need middleware, and only have a single target Dancer app to run here 10 use PlayOnBSD; 11 12 PlayOnBSD->to_app; 13 14 =begin comment 15 # use this block if you want to include middleware such as Plack::Middleware::Deflater 16 17 use PlayOnBSD; 18 use Plack::Builder; 19 20 builder { 21 enable 'Deflater'; 22 PlayOnBSD->to_app; 23 } 24 25 =end comment 26 27 =cut 28 29 =begin comment 30 # use this block if you want to mount several applications on different path 31 32 use PlayOnBSD; 33 use PlayOnBSD_admin; 34 35 use Plack::Builder; 36 37 builder { 38 mount '/' => PlayOnBSD->to_app; 39 mount '/admin' => PlayOnBSD_admin->to_app; 40 } 41 42 =end comment 43 44 =cut 45