diff --git a/Koha/App/Plugin/RESTV1.pm b/Koha/App/Plugin/RESTV1.pm index 7ff62beecf..883b989cbd 100644 --- a/Koha/App/Plugin/RESTV1.pm +++ b/Koha/App/Plugin/RESTV1.pm @@ -26,7 +26,7 @@ use Koha::REST::V1; sub register { my ($self, $app) = @_; - $app->routes->any('/api')->detour(app => Koha::REST::V1->new); + $app->routes->any('/api')->partial(1)->to(app => Koha::REST::V1->new); } 1;