RSS Git Download  Clone
Raw Blame History
#!/usr/bin/env perl

use strict;
use warnings;
use FindBin; # warn $FindBin::Bin;
use lib "$FindBin::Bin/../lib";


# use this block if you don't need middleware, and only have a single target Dancer app to run here
use CommsLog;

CommsLog->to_app;

=begin comment
# use this block if you want to include middleware such as Plack::Middleware::Deflater

use CommsLog;
use Plack::Builder;

builder {
    enable 'Deflater';
    CommsLog->to_app;
}

=end comment

=cut

=begin comment
# use this block if you want to mount several applications on different path

use CommsLog;
use CommsLog_admin;

use Plack::Builder;

builder {
    mount '/'      => CommsLog->to_app;
    mount '/admin'      => CommsLog_admin->to_app;
}

=end comment

=cut