Hello, its me again.

I see that the Template class support a MODE_STARTS_WITH and MODE_EQUALS but no MODE_ENDS_WITH. I think that would be very helpful in many use-cases, for example if you have a URL like /.../.../.../result where the path before the result-resource is variable but you always have a results-resource at the end...

Right now I have to explicitly set a route for every possible mutation of the paths with a result-resource at the end, would be much easier if I could just write router.attach("/result", ResultResource.class).getTemplate().setMatchingMode(Template.MODE_ENDS_WITH)

just an idea, what do you think?

Reply via email to