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
Aleksei Tirman [JB]
10/20/2022, 8:45 AM
Unfortunately, no for both.
l
Lukáš Kúšik
10/20/2022, 8:48 AM
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
Rustam Siniukov
10/20/2022, 8:52 AM
implementing your own regex route selector should be easy. you can check existing ones for reference