mirror of
https://github.com/ReVanced/revanced-api.git
synced 2026-01-29 22:21:04 +00:00
feat: Move spec url to versioned path
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user