Skip to content

Commit

Permalink
Merge pull request balderdashy#3326 from AlexisNo/routerbind-evt-add-…
Browse files Browse the repository at this point in the history
…options

Add the route options to the "routeObj" emited by the "router:bind" sails event
  • Loading branch information
tjwebb committed Nov 20, 2015
2 parents b92c2ec + a375650 commit 9714c47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/EVENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ Should receive a single argument, "routeObj", which looks like:
{
path: 'String',
target: function theFnBoundtoTheRoute (req, res, next) {},
verb: 'String'
verb: 'String',
options: 'Object'
}
```

Expand Down
1 change: 1 addition & 0 deletions lib/router/bind.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ function bindFunction(path, fn, verb, options) {
path: path,
target: util.clone(targetFn),
verb: verb,
options: options,
originalFn: fn
});

Expand Down

0 comments on commit 9714c47

Please sign in to comment.