v2.kotlin-server.libraries.ktor._api_body.mustache Maven / Gradle / Ivy
The newest version!
{{#has this 'auth-methods'}}
val principals = mutableListOf()
{{>libraries/ktor/_principal}}
if (principals.any({ it != null })) {
call.respond(HttpStatusCode.Unauthorized)
} else {
{{#examples}}
{{#@first}}
{{>_response}}
{{/@first}}
{{/examples}}
{{^examples}}
call.respond(HttpStatusCode.NotImplemented)
{{/examples}}
}
{{/has}}
{{^notHas this 'auth-methods'}}
{{#examples}}
{{#@first}}
{{>libraries/ktor/_response}}
{{/@first}}
{{/examples}}
{{^examples}}
call.respond(HttpStatusCode.NotImplemented)
{{/examples}}
{{/notHas}}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy