Is there a way to use regexes in path patterns or ...
# ktor
l
Is there a way to use regexes in path patterns or is there any mechanism for skipping a route handler to the next matching one on Ktor Server?
a
Unfortunately, no for both.
l
Well I have a static file route which gets overridden by a get route, even though the static route is defined first. They both match the incoming URL, and if I delete the get route, the static route handles the request normally. Is that a bug? How can I change the priorities then?
r
implementing your own regex route selector should be easy. you can check existing ones for reference
a
The
RouteSelector
abstract class.