allow swagger_path installed routes to be relocated

This commit is contained in:
Oliver Gorwits
2020-04-19 18:00:15 +01:00
parent da33478504
commit b9c002477b
6 changed files with 23 additions and 4 deletions

View File

@@ -157,6 +157,7 @@ register 'register_search_tab' => sub {
my $tag = $config->{tag};
swagger_path {
tags => ['Search'],
path => setting('api_base')."/search/$tag",
description => $config->{label} .' Search',
parameters => $config->{api_parameters},
responses =>
@@ -197,6 +198,7 @@ register 'register_report' => sub {
(my $category_path = lc $config->{category}) =~ s/ /-/g;
swagger_path {
tags => ['Reports'],
path => setting('api_base')."/report/$category_path/$tag",
description => $config->{label} .' Report',
parameters =>
($config->{api_parameters} ||