summaryrefslogtreecommitdiffstats
path: root/rest.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'rest.cgi')
-rwxr-xr-xrest.cgi11
1 files changed, 2 insertions, 9 deletions
diff --git a/rest.cgi b/rest.cgi
index f12fb64c4..ab985ca79 100755
--- a/rest.cgi
+++ b/rest.cgi
@@ -15,17 +15,10 @@ use lib qw(. lib);
use Bugzilla;
use Bugzilla::Constants;
use Bugzilla::Error;
-use Bugzilla::WebService::Constants;
BEGIN {
- if (!Bugzilla->feature('rest')
- || !Bugzilla->feature('jsonrpc'))
- {
+ if (!Bugzilla->feature('rest')) {
ThrowUserError('feature_disabled', { feature => 'rest' });
}
}
-use Bugzilla::WebService::Server::REST;
Bugzilla->usage_mode(USAGE_MODE_REST);
-local @INC = (bz_locations()->{extensionsdir}, @INC);
-my $server = new Bugzilla::WebService::Server::REST;
-$server->version('1.1');
-$server->handle();
+Bugzilla->api_server->handle();