jeremy
neworldlt
fun Route.userAuth(kodein: Kodein, path: String = "", build: Route.() -> Route) { route(path) { authentication { .... } build() } }
userAuth(kodein,"/user/current") { get { call.respond(UserController(kodein).current(call.userId)) } }
orangy
<https://github.com/ktorio/ktor/blob/master/ktor-samples/ktor-samples-auth/src/io/ktor/samples/auth/JwtApplication.kt#L33>
A modern programming language that makes developers happier.