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

Add a flags parameter to route mounting #146

Closed
mcavage opened this issue May 28, 2012 · 1 comment
Closed

Add a flags parameter to route mounting #146

mcavage opened this issue May 28, 2012 · 1 comment

Comments

@mcavage
Copy link
Contributor

mcavage commented May 28, 2012

From Marvin on the restify list:

server.get({path: '/name/:name', flags: 'i'},function(req, res, next) {  
        res.send('Hello ' + req.params.name);
});

That is, basically allow case insensitive routes without requiring an instance of RegExp.

@mcavage
Copy link
Contributor Author

mcavage commented Jun 2, 2012

Fixed in master. Will be in 1.4.3

@mcavage mcavage closed this as completed Jun 2, 2012
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

1 participant