Bear with me a little longer :slightly_smiling_fac...
# ktor
m
Bear with me a little longer 🙂. Why couldn’t you have a location instance when the routes are being built? I could imagine syntax like:
Copy code
get<MyLocation>("/some/url/{param}"){} //This would use the given path instead of looking up the annotation path
Copy code
get(MyLocation(“/some/path/{param}”)){…}//This would require a custom LocationAttributeRouteService taking the instance instead of the class
I suspect i’m missing something pretty simple… And anyway, the current solution will be good enough for what I want(isolating ktor in a single module, while still using Location instances to get hrefs).