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

orangy

01/12/2018, 12:06 AM
Well, routing is designed to select handlers by http request properties mainly, e.g. path, query, headers, host, etc. If you want to select handlers by some other means, you either need to create own selectors (it’s extensible), or make a second-layer selection mechanism, be it an
if
or table lookup, or anything else.