``` routing { get("/"){ va...
# ktor
e
Copy code
routing {

        get("/"){
            val userName = call.attributes.getOrNull(userContext)?.toString() ?: ""
            call.respond("home $userName")
        }

       // intercept here and redirect to the login page
      // all routes below here should be authenticated
        route("/account"){
            handle{
                call.respond("account")
            }
        }