Package com.tp2020.backend.utils.extensions

Functions

fromBase64
Link copied to clipboard
fun String.fromBase64(): String
getActualTime
Link copied to clipboard
fun getActualTime(): LocalDateTime
getUserId
Link copied to clipboard
fun PipelineContext<Unit, ApplicationCall>.getUserId(): String
fun DefaultWebSocketServerSession.getUserId(): String
getUserRole
Link copied to clipboard
fun JWTPrincipal.getUserRole(): String?
fun PipelineContext<Unit, ApplicationCall>.getUserRole(): String
installAll
Link copied to clipboard
fun <T : Feature> List<T>.installAll(application: Application)
respondEmpty
Link copied to clipboard
suspend fun ApplicationCall.respondEmpty(status: HttpStatusCode = HttpStatusCode.OK)
setupRoutes
Link copied to clipboard
fun <T : Controller> List<T>.setupRoutes(route: Route)
toBase64
Link copied to clipboard
fun String.toBase64(): String
withAnyRole
Link copied to clipboard
fun Route.withAnyRole(vararg roles: Role, build: Route.() -> Unit): Route
withRole
Link copied to clipboard
fun Route.withRole(role: Role, build: Route.() -> Unit): Route

Properties

parsedRootPath
Link copied to clipboard
val DeploymentConfigurationModel.parsedRootPath: String