Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Route Docs - handler and match #150

Closed
gauntface opened this issue Jan 13, 2017 · 1 comment
Closed

Route Docs - handler and match #150

gauntface opened this issue Jan 13, 2017 · 1 comment
Assignees

Comments

@gauntface
Copy link

The Route docs don't explain what is passed into callbacks for match and handler.

match function
The function that determines whether the route matches.

handler Object
An Object with a handle method. That method will be used to respond to matching requests.

method string (Optional)
Only match requests that use this HTTP method. Defaults to 'GET' if not specified.

@jeffposnick jeffposnick self-assigned this Jan 13, 2017
@jeffposnick
Copy link
Contributor

I've got a PR coming up with revised JSDocs. I'll make sure to clarify that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants