Is there a way in Ktor to have multiple routes go ...
# ktor
k
Is there a way in Ktor to have multiple routes go to the same handler. For example I’d like “/api/todos” and /api/v1/todos” to be the same branch of the tree?
s
Extract the code to a function and call in both
✔️ 3
k
Sure. But I was wondering if there was a way of doing this in the route setup
s
Why isnt it possible in the route setup?