DEXPRO-Solutions-GmbH / swaggerui

Gin handler to expose an OpenAPI spec via Swagger UI
Apache License 2.0
0 stars 0 forks source link

Fix swaggerui path by redirecting to swagger-ui #11

Closed fabiante closed 1 year ago

fabiante commented 1 year ago

Closing #10

This is the simplest fix for the linked bug. SwaggerUI is not intended to be run on paths other that swagger-ui at least not without modifying dist/swagger-initializer.js.

I think it is a wise choice not to modify that file as that keeps maintenance low. If we changed that we would have to apply those changes every time we update swaggerUI. That is of course possible and would be simpler when using git patch files but in this PR I'd like to go the simple route.