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()
}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()
}Create a free account to access the full topic