Join Slack
Powered by
Hey there, does anyone have an example of a pretty...
# ktor
e
emuz
07/20/2017, 12:37 PM
Hey there, does anyone have an example of a pretty complex API in ktor I can have a look at? I've seen tutorials telling you how to make a simple one, but I want to know how to structure an API with a fair amount of logic
h
hhariri
07/20/2017, 1:53 PM
Have you checked out
https://github.com/Kotlin/ktor/blob/master/ktor-samples/you-kube
sample?
hhariri
07/20/2017, 1:53 PM
You can define and separate modules of functionality using routes
https://github.com/Kotlin/ktor/blob/master/ktor-samples/you-kube/src/you/kube/App.kt#L64
4
Views
Open in Slack
Previous
Next