ktor is pretty unopinionated. However you want to ...
# ktor
m
ktor is pretty unopinionated. However you want to end up calling logic inside a
route
block is up to you. What I've found works well for me is to have one class for a cluster of endpoints wired up in that class's ctor. This also gives you an opportunity to bring a DI container into the mix, which is generally convenient. https://bitbucket.org/marshallpierce/ktor-demo/src/master/ is a little toy project that shows how to do it.