I'm using it this way, but it doesn't seem to be the proper way.
install(SwaggerUI) {
ignoredRouteSelectors = ignoredRouteSelectors + RateLimitRouteSelector::class
swagger {
swaggerUrl = "swagger-ui"
forwardRoot = true
}
info {
title = "API"
version = "latest"
description = "API"
}
server {
// Some features are disabled, but the UI is still visible.
url = "a"
description = "Development Server"
}
https://www.baeldung.com/swagger-ui-turn-off-in-production This is an example of spring. And I want to know how to turn off/hide swagger UI in production.
I'm using it this way, but it doesn't seem to be the proper way.