AltoRouter icon indicating copy to clipboard operation
AltoRouter copied to clipboard

Add support for default param values

Open koenpunt opened this issue 10 years ago • 3 comments

Fixes #74

koenpunt avatar May 09 '14 13:05 koenpunt

How does this work? Default params are for the whole instance of altorouter? Not separately for each route map?

Being able to set default params for each route map could be very useful, would allow more flexibility while using the router since you can e.g easily create an alias for a route while passing the expected parameters via defaults params for this route map

unitedworx avatar May 30 '14 20:05 unitedworx

We could add it as an extra argument of the map function as well

koenpunt avatar Jun 02 '14 17:06 koenpunt

For what it's worth, I've added this request in my fork just so you don't think it's just been lost of forgotten

mastacontrola avatar Apr 05 '17 17:04 mastacontrola