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

Merged
merged 1 commit into from Mar 5, 2012

Conversation

Projects
None yet
3 participants

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

Contributor

mcavage commented Mar 5, 2012

Looks good Dominic, thanks!

@mcavage mcavage added a commit that referenced this pull request Mar 5, 2012

@mcavage mcavage Merge pull request #93 from dominicbarnes/param
Minimal Port of Express.js Route Param Pre-conditions
6285e54

@mcavage mcavage merged commit 6285e54 into restify:master Mar 5, 2012

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