It is the easiest way to add all the URLs and their corresponding functions. The only catch is that there is no separation of concern, which means that the code is not self-dependent and not modular either.
Example:
get("/") { call.respondText("Hello readers!", ContentType.Text.Html) }
In this case, the URL pattern and its action (function) are specified in the application file.