Warning

Report a typo

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!")
}
Enter a short text
___

Create a free account to access the full topic