https://kotlinlang.org logo
#ktor
Title
# ktor
t

tipsy

08/01/2018, 12:05 AM
i don't really know ktor, but you could solve it by extracting the lambda to a function?
Copy code
get("/", ::dualHandler)
post("/", ::dualHandler)
☝️ 1
h

Hamza

08/01/2018, 2:19 AM
i bet you can also just extract the lambda into a variable, so no need for a whole function