Hi everyone!
Currently, if one creates a route like this:
router.attach("books/{book}", BookResource.class);
and then sends a request like this:
GET books//some_book
the response is a 404; the Router, Route, and Template classes consult
each other and determine that the requested path is not defined,
because of the double slashes.
This behaviour makes sense, but I'm interested in a way to put the
Router or the Route into a mode wherein they would ignore the double
slashes somehow, or collapse them together into a single slash. I
tried to follow the Routing code but I couldn't figure it out.
So my question: would there be interest in an enhancement such as
this? Or does anyone have a suggestion on how to achieve this via
filters or services or something like that?
Thanks!
--
Avi Flax » Lead Technologist » Partner » Arc90 » http://arc90.com