You can have some routing mapping function that wi...
# ktor
o
You can have some routing mapping function that will associate types with route paths in any way you like. Well, you can’t make it 1:M, because you need one in
href
, but it’s quite flexible. OTOH, if all you need is data class mapping, you can get away by building own DSL and using only
resolve
from locations engine. Like this: https://github.com/Kotlin/ktor/blob/master/ktor-features/ktor-locations/src/org/jetbrains/ktor/locations/Location.kt#L43