feat: Move spec url to versioned path

This commit is contained in:
oSumAtrIX
2024-11-06 05:30:00 +01:00
parent e22ec16e40
commit e871b23210
3 changed files with 18 additions and 7 deletions

View File

@@ -52,6 +52,7 @@ internal fun Application.configureRouting() = routing {
extensions("json", "asc")
}
swagger(pageTitle = "ReVanced API", path = "/")
redoc(pageTitle = "ReVanced API", path = "/redoc")
val specUrl = "/${configuration.apiVersion}/openapi.json"
swagger(pageTitle = "ReVanced API", path = "/", specUrl = specUrl)
redoc(pageTitle = "ReVanced API", path = "/redoc", specUrl = specUrl)
}