diff options
author | Dylan William Hardison <dylan@hardison.net> | 2018-05-21 17:38:41 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2018-06-28 22:41:56 +0200 |
commit | 3517d8a6687cd37cb8c9009a78f16071d652254a (patch) | |
tree | 135535be087ee773e710e0c6d762283a3dfbb902 /Bugzilla/Quantum.pm | |
parent | 873074873fe5e27e853e5ce3d83b078280a29c2a (diff) | |
download | bugzilla-3517d8a6687cd37cb8c9009a78f16071d652254a.tar.gz bugzilla-3517d8a6687cd37cb8c9009a78f16071d652254a.tar.xz |
almost working
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 { |