Write a code that logs the message using the WARN level, when the user requests /danger endpoint:
get("/danger") {
val message = "A danger endpoint has been requested!"
/* your code here */
call.respondText("Danger!")
}Write a code that logs the message using the WARN level, when the user requests /danger endpoint:
get("/danger") {
val message = "A danger endpoint has been requested!"
/* your code here */
call.respondText("Danger!")
}Create a free account to access the full topic