diff options
author | Dylan William Hardison <dylan@hardison.net> | 2018-05-21 20:14:53 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2018-06-28 22:41:56 +0200 |
commit | 3d8dc32afa0131e2ac0cd121b492aed8ad59fc11 (patch) | |
tree | 2d3489acbaa726ff7daaee0758c2bbd50c8fe13a /Bugzilla/Quantum.pm | |
parent | 15661bf793105352c3cf0d84d6c7e790be838a78 (diff) | |
download | bugzilla-3d8dc32afa0131e2ac0cd121b492aed8ad59fc11.tar.gz bugzilla-3d8dc32afa0131e2ac0cd121b492aed8ad59fc11.tar.xz |
working more
Diffstat (limited to 'Bugzilla/Quantum.pm')
-rw-r--r-- | Bugzilla/Quantum.pm | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Bugzilla/Quantum.pm b/Bugzilla/Quantum.pm index 9b98bffa2..f40348653 100644 --- a/Bugzilla/Quantum.pm +++ b/Bugzilla/Quantum.pm @@ -12,7 +12,6 @@ use CGI::Compile; # Primarily for its exit overload. use Bugzilla::Quantum::Template; use Bugzilla::Quantum::CGI; use Bugzilla::Quantum::Static; -use Bugzilla::PSGI qw(compile_cgi); use Bugzilla (); use Bugzilla::Constants qw(bz_locations); @@ -34,15 +33,14 @@ sub startup { Bugzilla->template; $self->secrets([Bugzilla->localconfig->{side_wide_secret}]); - my $rest = compile_cgi('rest.cgi'); $self->plugin('Bugzilla::Quantum::Plugin::Glue'); my $r = $self->routes; - Bugzilla::Quantum::CGI->expose_routes($r); + Bugzilla::Quantum::CGI->load_all($r); - $r->any('/')->to('CGI#handle_index'); - $r->any('/rest')->to('CGI#handle_rest'); - $r->any('/rest/*path_info')->to('CGI#handle_rest'); + $r->any('/')->to('CGI#index_cgi'); + $r->any('/rest')->to('CGI#rest_cgi'); + $r->any('/rest/*path_info')->to('CGI#rest_cgi'); $r->get( '/__lbheartbeat__' => sub { |