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

@@ -32,6 +32,7 @@ BEGIN {
$response->status($status || 302);
$response->headers('Location' => $destination);
};
# neater than using Dancer::Plugin::Res to handle JSON differently
*Dancer::send_error = sub {
my ($body, $status) = @_;