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
-
I'm using Laravel 9 and I can only get Swagger working when
api.yaml
is in the public folder.swagger.js
so theapi.yaml
can be saved instorage/api/docs
?api.yaml
a 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