Skip to content

Instantly share code, notes, and snippets.

@scottw
Created March 14, 2017 15:38
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/a330311d443ef76358a42a11097169ea to your computer and use it in GitHub Desktop.
Save scottw/a330311d443ef76358a42a11097169ea 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-14 09:34:37.000000000 -0600
@@ -223,7 +223,7 @@
local $spec->{id};
delete $spec->{id};
- local $spec->{basePath} = $c->url_for($spec->{basePath});
+# local $spec->{basePath} = $c->url_for($spec->{basePath});
local $spec->{host} = $c->req->url->to_abs->host_port;
return $c->render(json => $spec) unless $format eq 'html';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment