summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-08-06 20:14:49 +0200
committerDylan William Hardison <dylan@hardison.net>2018-08-20 23:52:52 +0200
commitae07e0f8f8f328c44ec0febc39d30ea639005f12 (patch)
treed999fc98a6f7b335899c727c0bc95053bc87fd91
parentef2ec2c8682d51a9a4d21c4f431ce0f9f1ae0d88 (diff)
downloadbugzilla-ae07e0f8f8f328c44ec0febc39d30ea639005f12.tar.gz
bugzilla-ae07e0f8f8f328c44ec0febc39d30ea639005f12.tar.xz
handle bare bugs
-rw-r--r--Bugzilla/Quantum.pm4
1 files changed, 3 insertions, 1 deletions
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(