aboutsummaryrefslogtreecommitdiffstats
path: root/app.psgi
blob: 5f7128d00a1f923f3230db6508c65a45a7d590a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use strict;
use warnings;

use FixMyStreet::App;
use Plack::Builder;
use Catalyst::Utils;

my $app = FixMyStreet::App->apply_default_middlewares(FixMyStreet::App->psgi_app);

builder {
    enable 'Debug', panels => [ qw(Parameters Response DBIC::QueryLog CatalystLog Timer Memory FixMyStreet::Template LWP) ]
        if Catalyst::Utils::env_value( 'FixMyStreet::App', 'DEBUG' );

    $app;
};