if I send a request like `/en/exercises/abc` the r...
# ktor
s
if I send a request like
/en/exercises/abc
the route matcher resolves with the staticFiles one but then gives me a 404 because the file doesn't exist. How do I fix this? Route 1:
get("/{locale}/exercises/{name}")
Route 2:
staticFiles("/en", File(..))
a
Do you want the route 1 to be matched?
s
oh yes. I figured out I can loop over all available locales so I have
"/en/exercises/{name}"
and
"/de/exercises/{name}"
. then it matches these routes rather than Route 2