Fix openapi filename
This commit is contained in:
@@ -13,6 +13,6 @@ import io.ktor.util.KtorExperimentalAPI
|
|||||||
@KtorExperimentalAPI
|
@KtorExperimentalAPI
|
||||||
fun Route.definition() {
|
fun Route.definition() {
|
||||||
get("/") {
|
get("/") {
|
||||||
call.respondText("/openApi.yaml".readResource(), ContentType("text", "yaml"))
|
call.respondText("/openapi.yaml".readResource(), ContentType("text", "yaml"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user