If say I have a route that is defined like this: "{books}/{*all}"
, then any URL that have a root folder defined will match it (i.e. http://mysite.com/greekbooks/somethingirrelavant.htm).
But what if I wanted to go further, and would like to present a custom handler for greekbooks published in 1982 (i.e. the url http://mysite.com/greekbooks/1982/anythinghere). I would really not like to put this logic into my first route handler, but to present a second one to deals with serving pages when this url is matched.
The problem is that "{books}/{*all}"
will eat "{books}/1982/{*all}"
also.
Basically how do you define more than one route handler when dealing with '*' ( all )
match? Is it possible at all?