Apply module

Report a typo

Write the code that applies the API router in the application:

fun Application.apiRouter() {
    routing {
        route("/api") { ... }
    }
}

fun main() {
    embeddedServer(Netty, port = 8080) {
        /* your code here */
    }.start()
}
Enter a short text
___

Create a free account to access the full topic