diff options
Diffstat (limited to 'Bugzilla/Quantum.pm')
-rw-r--r-- | Bugzilla/Quantum.pm | 27 |
1 files changed, 3 insertions, 24 deletions
diff --git a/Bugzilla/Quantum.pm b/Bugzilla/Quantum.pm index 3f197a508..9b98bffa2 100644 --- a/Bugzilla/Quantum.pm +++ b/Bugzilla/Quantum.pm @@ -36,34 +36,13 @@ sub startup { my $rest = compile_cgi('rest.cgi'); $self->plugin('Bugzilla::Quantum::Plugin::Glue'); - $self->plugin( - 'MountPSGI' => { - rewrite => 1, - '/rest' => $rest, - } - ); - $self->plugin( - 'MountPSGI' => { - rewrite => 1, - '/rest.cgi' => $rest, - } - ); - $self->plugin( - 'MountPSGI' => { - rewrite => 1, - '/xmlrpc.cgi' => compile_cgi('xmlrpc.cgi'), - } - ); - $self->plugin( - 'MountPSGI' => { -rewrite => 1, - '/jsonrpc.cgi' => compile_cgi('jsonrpc.cgi'), - } - ); + my $r = $self->routes; Bugzilla::Quantum::CGI->expose_routes($r); $r->any('/')->to('CGI#handle_index'); + $r->any('/rest')->to('CGI#handle_rest'); + $r->any('/rest/*path_info')->to('CGI#handle_rest'); $r->get( '/__lbheartbeat__' => sub { |