orangy
02/17/2017, 10:19 PMorangy
03/16/2017, 5:25 PMchillenious
03/17/2017, 1:45 AMcy
03/17/2017, 10:41 AMqwert_ukg
03/17/2017, 11:27 AMimpy
03/18/2017, 11:02 PMhhariri
03/19/2017, 6:55 AMspand
04/04/2017, 9:51 AMfun Application.main() {
install(CallLogging)
install(Routing) {
get("/") {
throw Exception("Foo")
call.respondText("Hello, World!")
}
}
}
Produces a 404orangy
04/17/2017, 9:09 AMrachit
05/22/2017, 10:11 AMcy
05/22/2017, 12:42 PMcom.practo.MainKt
rachit
05/22/2017, 1:05 PMin
is a keyword in kotlin, so i can't have a package name like <http://in.xyz|in.xyz>
😮artemiy
05/23/2017, 4:45 PMcodeslubber
05/31/2017, 5:35 PMorangy
06/01/2017, 6:50 PMqwert_ukg
06/08/2017, 6:06 AMorangy
06/16/2017, 1:12 PMmain
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") {…}
}
avolkmann
06/20/2017, 4:02 PMthisen
06/24/2017, 9:36 PMorangy
06/26/2017, 4:16 PMstatic("static") {
resources("static")
}
thisen
06/29/2017, 10:19 AMfun Application.main() {
install(DefaultHeaders)
install(Routing) {
get("/") {
call.respondText("Hello, World!")
}
}
}
juliocbcotta
07/03/2017, 5:46 PMorangy
07/04/2017, 3:21 PMtrevjones
07/06/2017, 5:28 PMjuliocbcotta
07/07/2017, 6:02 PMavolkmann
07/11/2017, 10:50 AMpoohbar
07/11/2017, 11:12 AMmkporwit
07/18/2017, 5:40 PMorangy
07/19/2017, 2:12 PMemuz
07/20/2017, 12:37 PMemuz
07/20/2017, 12:37 PMhhariri
07/20/2017, 1:53 PM