From ae07e0f8f8f328c44ec0febc39d30ea639005f12 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Mon, 6 Aug 2018 14:14:49 -0400 Subject: handle bare bugs --- Bugzilla/Quantum.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Bugzilla/Quantum.pm b/Bugzilla/Quantum.pm index 8d46833c4..01cbb8927 100644 --- a/Bugzilla/Quantum.pm +++ b/Bugzilla/Quantum.pm @@ -61,10 +61,12 @@ sub startup { Bugzilla::WebService::Server::REST->preload; $r->any('/')->to('CGI#index_cgi'); + $r->any('/bug/:id')->to('CGI#show_bug_cgi'); + $r->any('/:bug_id' => { bug_id => qr/^[0-9]+$/ }); + $r->any('/rest')->to('CGI#rest_cgi'); $r->any('/rest.cgi/*PATH_INFO')->to( 'CGI#rest_cgi' => { PATH_INFO => '' } ); $r->any('/rest/*PATH_INFO')->to( 'CGI#rest_cgi' => { PATH_INFO => '' } ); - $r->any('/bug/:id')->to('CGI#show_bug_cgi'); $r->any('/extensions/BzAPI/bin/rest.cgi/*PATH_INFO')->to('CGI#bzapi_cgi'); $r->get( -- cgit v1.2.3-24-g4f1b