orangy
main
function which installs all the features, opens routing
and then calls functions for various parts of the system.
public Application.main() {
install(…)
install(…)
routing {
users() // user routes
articles() // article routes
}
}
// in other file
fun Route.users() {
get("users") {…}
}
ice32
06/16/2017, 1:19 PMorangy
orangy
ice32
06/16/2017, 1:32 PM