Skip to content

Commit

Permalink
Merge pull request #27 from mglinski/automatic-docs-https-urls
Browse files Browse the repository at this point in the history
Support Generating HTTPS /docs urls automatically based on requesting schema
  • Loading branch information
DarkaOnLine committed Jul 26, 2017
2 parents a4b5826 + 496b752 commit 091a267
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
view('swagger-lume::index', [
'apiTitle' => config('swagger-lume.api.title'),
'secure' => (new Request())->secure(),
'urlToDocs' => url(config('swagger-lume.routes.docs')),
'urlToDocs' => url(config('swagger-lume.routes.docs'), [], (new Request())->secure()),
'requestHeaders' => config('swagger-lume.headers.request'),
'docExpansion' => config('swagger-lume.docExpansion'),
'highlightThreshold' => config('swagger-lume.highlightThreshold'),
Expand Down

0 comments on commit 091a267

Please sign in to comment.