@@ -, +, @@ --- Koha/REST/Plugin/PluginRoutes.pm | 3 +-- Koha/REST/V1/Static.pm | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) --- a/Koha/REST/Plugin/PluginRoutes.pm +++ a/Koha/REST/Plugin/PluginRoutes.pm @@ -48,13 +48,12 @@ sub register { if ( C4::Context->preference('UseKohaPlugins') && C4::Context->config("enable_plugins") ) { + # plugin needs to define a namespace @plugins = Koha::Plugins->new()->GetPlugins( { method => 'api_namespace', } ); - # plugin needs to define a namespace - #@plugins = grep { $_->api_namespace } @plugins; } foreach my $plugin ( @plugins ) { --- a/Koha/REST/V1/Static.pm +++ a/Koha/REST/V1/Static.pm @@ -68,7 +68,6 @@ sub get { return try { my $asset = Mojo::Asset::File->new(path => join('/', $basepath, $relpath)); return $c->render({ status => 404, openapi => { error => 'File not found' } }) unless $asset->is_file; - # $c->res->headers->content_type("image/jpeg"); return $c->reply->asset($asset); } catch { --