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

Minimal Port of Express.js Route Param Pre-conditions #93

Merged
merged 1 commit into from Mar 5, 2012
Merged

Minimal Port of Express.js Route Param Pre-conditions #93

merged 1 commit into from Mar 5, 2012

Conversation

dominicbarnes
Copy link

Minimal port of the functionality offered by Express.js Route Param Pre-conditions

This basically piggy-backs on the server.use method. It attaches a new middleware function that only fires if the specified parameter exists in req.params

This might be too simplistic, if so I can beef it up a bit. :)
#91

@mcavage
Copy link
Contributor

mcavage commented Mar 5, 2012

Looks good Dominic, thanks!

mcavage added a commit that referenced this pull request Mar 5, 2012
Minimal Port of Express.js Route Param Pre-conditions
@mcavage mcavage merged commit 6285e54 into restify:master Mar 5, 2012
@Myztiq
Copy link

Myztiq commented Oct 15, 2013

I was searching for something like this. It looks like it's just not documented in the API Guide.

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

Successfully merging this pull request may close these issues.

None yet

3 participants