dany giguere
02/23/2022, 9:45 PMcall
available from it ? :
fun Application.hasSignedUrlMiddleware() {
routing {
val uri = call.request.uri
// if(url doesn't have a signed url) {
// throw AuthorizationException("Sorry you are not authorized")
// }
}
}
get("/posts") {
hasSignedUrlMiddleware()
call.respond(mapOf("posts" to postDAO.all()))
}
Aleksei Tirman [JB]
02/24/2022, 9:07 AMdany giguere
02/24/2022, 12:43 PMcall
object (the request) from it . Because I need to get the inputs/parameters from the request to build my logic.Aleksei Tirman [JB]
02/24/2022, 12:54 PMApplicationCall
object.dany giguere
02/24/2022, 1:07 PM