How do I make the url dynamic and call the api.yaml file in storage? #8901
cameronjohnson-mz
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using Laravel 9 and I can only get Swagger working when
api.yamlis in the public folder.swagger.jsso theapi.yamlcan be saved instorage/api/docs?api.yamla non-public file for production, but still usable in the URL.a.
url: window.location.origin + 'storage/docs/api/api.yaml'Beta Was this translation helpful? Give feedback.
All reactions