AdrianTodt
get("/") { _ -> val session = call.sessions.get<DashSession>() ?: return@get call.respondRedirect("/login") /* code */ }
Deactivated User
inline fun <reified T> CurrentSession.getOrThrow(): T = this.get<T>() ?: throw SessionNotFoundException(T::class)
A modern programming language that makes developers happier.