You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to be able to serve the swagger UI on a route like /docs or /swagger without having to provide the full path and extension /swagger/index.html. Is there currently a way to do this or something that could be supported?
The text was updated successfully, but these errors were encountered:
I declared some routes where you can redirect to the main swagger assets handler to serve the request.
So with this hack if you request /swagger, /docs, /docs/ or even /docs/adsasdfasdf that will perfectly redirect to the main swagger handler correctly /swagger/index.html.
The only case i couldnt not solve was /swagger/ because this case is handled by the swagger wildcard route and the ginSwagger.WrapHandler cannot resolve any asset to serve from that route so it responds with 404.
Note that this is a hack and a better solution to serve these files could be implemented in this library, but maybe not that neccessary
I would like to be able to serve the swagger UI on a route like
/docs
or/swagger
without having to provide the full path and extension/swagger/index.html
. Is there currently a way to do this or something that could be supported?The text was updated successfully, but these errors were encountered: