Closed s76527 closed 1 year ago
Hi, thanks a lot for your pr.
I do have a question though i may be missing something: would just setting the swaggerUrl
in the plugin-config work aswell.
So using the CompletePluginConfigExample.kt
as an example:
instead of ...
swagger {
swaggerUrl = "/api/swagger-ui"
rootHostPath = "/my-ktor-web-app"
}
... could ...
swagger {
swaggerUrl = "/my-ktor-web-app/api/swagger-ui"
}
... this also work and be enough ?
Ah, nevermind. Ignore my question 😄. PR looks fine, thanks again 👍 I'll publish it with the next version 2.3.0 as soon as possible.
I made an adjustment so i can host my app behind a reverse proxy with a custom context path. Without this, i have the problem, that the routing to the SwaggerUI module is broken and the api.json file can't be found.