DEXPRO-Solutions-GmbH / swaggerui

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

Redirect from .../swaggerui does not work #15

Closed fabiante closed 4 months ago

fabiante commented 10 months ago

Calling some path like this: https://localhost/apis/bff/v0/swaggerui

Redirects to: https://localhost/swagger-ui

The redirect should not ignore the path segment /apis/bff/v0

fabiante commented 10 months ago

This redirect should take the incoming path, look for swaggerui and replace it with swagger-ui.

https://github.com/DEXPRO-Solutions-GmbH/swaggerui/blob/main/handler.go#L58-L60

If swaggerui is not found for replacement, this could fall back to the current solution.