From 3517d8a6687cd37cb8c9009a78f16071d652254a Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Mon, 21 May 2018 11:38:41 -0400 Subject: almost working --- Bugzilla/Quantum.pm | 27 +++------------------------ 1 file changed, 3 insertions(+), 24 deletions(-) (limited to 'Bugzilla/Quantum.pm') 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 { -- cgit v1.2.3-24-g4f1b