if you need get/post functions to return exact typ...
# ktor
c
if you need get/post functions to return exact type you could try something like this
Copy code
@ContextDsl
fun Route.myGet(path: String, block: suspend (ApplicationCall) -> MyResponse): Route = get("/") { call.respond(block(call)) }
👌🏼 1