mp
11/26/2018, 7:30 PMroute
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.