use Bugzilla::Util qw(datetime_from trick_taint);
use File::Basename qw(basename);
-use File::Glob qw(bsd_glob);
+use File::Glob qw(:bsd_glob);
use List::MoreUtils qw(none uniq);
use MIME::Base64 qw(decode_base64 encode_base64);
use Moo;
$api_namespace, 'API', $api_ext_version, 'Resource', '*.pm');
}
else {
- $resource_modules = File::Spec->catdir('Bugzilla','API', $api_version,
- 'Resource', '*.pm');
+ $resource_modules = File::Spec->catdir(bz_locations()->{cgi_path},
+ 'Bugzilla','API', $api_version, 'Resource', '*.pm');
}
# Load in the WebService modules from the appropriate version directory
jsonrpc => ['Bugzilla/WebService/Server/JSONRPC.pm', 'jsonrpc.cgi'],
xmlrpc => ['Bugzilla/WebService/Server/XMLRPC.pm', 'xmlrpc.cgi',
'Bugzilla/WebService.pm', 'Bugzilla/WebService/*.pm'],
- rest => ['Bugzilla/WebService/Server/REST.pm', 'rest.cgi',
- 'Bugzilla/WebService/Server/REST/Resources/*.pm'],
+ rest => ['Bugzilla/API/Server.pm', 'rest.cgi',
+ 'Bugzilla/API/*/Server.pm', 'Bugzilla/API/*/Resource/*.pm'],
psgi => ['app.psgi'],
moving => ['importxml.pl'],
auth_ldap => ['Bugzilla/Auth/Verify/LDAP.pm'],