Skip to content

Instantly share code, notes, and snippets.

@scottw
Created March 13, 2017 23:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottw/6716fbaaa8a0364e142e4b75a0957167 to your computer and use it in GitHub Desktop.
Save scottw/6716fbaaa8a0364e142e4b75a0957167 to your computer and use it in GitHub Desktop.
--- local/lib/perl5/Mojolicious/Plugin/OpenAPI.pm~ 2017-03-02 16:35:26.000000000 -0700
+++ local/lib/perl5/Mojolicious/Plugin/OpenAPI.pm 2017-03-13 17:45:31.000000000 -0600
@@ -71,6 +71,7 @@
my $spec_route = $route->get->to(cb => \&_reply_spec);
if (my $spec_route_name = $config->{spec_route_name} || $api_spec->get('/x-mojo-name')) {
$spec_route->name($spec_route_name);
+ $spec_route->route($spec_route_name);
$route_prefix = "$spec_route_name.";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment