Erick House
03/20/2018, 6:20 PMrouting {
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")
}
}