When looking to the generated trace in the first c...
# ktor
j
When looking to the generated trace in the first case the
/api
isn't prepend to the other routes as I fought it would, instead ktor try to match /api or /foo or /baz. Is there a way to mutualize a part of a route without adding it in every Routing ? It's quite redundant to put the
/api
in every Routing file that I might create. Also in my web.xml I tried to put
/api
in the url-pattern, but ktor doesn't seems to base its matching on it and try to work from
/
instead.
d
Make your extensions (
fooApi
, etc) on
Route
, not
Routing
.
j
Simple as that 😅 Thanks !
r
Yeah you’re explicitely using the wrong
this