I have the route 'availability/exceptions' which routes to the function availabilityExceptions
and which works fine:
return Backbone.Marionette.AppRouter.extend({
appRoutes: {
'availability/exceptions(/:key1)(/:value1)': 'availabilityExceptions',
}
...
I want to be able to route to that function no matter what follows 'availability/exceptions'. E.g. 'availability/exceptions/some_key/some_val', 'availability/exceptions/some_key/some_val/some_key2/some_val2', 'availability/exceptions/some_key/some_val/some_key2/some_val2/some_key3/some_val3' etc should all go to availabilityExceptions and passing through whatever comes after 'availability/exceptions'. Is this possible?