Add the ability to pass arguments to the route handler at route time
Arguments passed in to the route method at route time will be passed in to the handler for that route. var router = new Router() router.add('/some/path' function (someParam) { // someParam would be 123 }) router.route('/some/path', {args: [123]})master
parent
2fbcab6dd2
commit
2784f9d492
Loading…
Reference in New Issue