frellan
04/20/2018, 10:55 AMif (constraint == null) {
call.respond(HttpStatusCode.BadRequest, "Payload is so bad dude")
return@get
}
And that does not seem ideal, and it gets even worse when I want to extract stuff into functions, I am currently just returning null and checking again in the main flow, seems stupid. How do one go about this? I have not quite understood how the whole routing thing works, is one GIANT function or something right?