diff --git a/Koha/REST/V1.pm b/Koha/REST/V1.pm index 66bae63d73..52bd15697e 100644 --- a/Koha/REST/V1.pm +++ b/Koha/REST/V1.pm @@ -76,6 +76,9 @@ sub startup { } my $spec_file = $self->home->rel_file("api/v1/swagger/swagger_bundle.json"); + if (!-f $spec_file) { + $spec_file = $self->home->rel_file("api/v1/swagger/swagger.yaml"); + } push @{$self->routes->namespaces}, 'Koha::Plugin';