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

alternate syntax #1

Open
NoumanSaleem opened this issue Jan 1, 2014 · 1 comment
Open

alternate syntax #1

NoumanSaleem opened this issue Jan 1, 2014 · 1 comment

Comments

@NoumanSaleem
Copy link

Great module, just a suggestion here.

Instead of .get({ name: 'foo', re: '/foo'}, middleware1, function (req, res)

How about keeping with the express format, and making name the optional second param.

.get('/foo', 'foo', middleware1, function (req, res)

@TechplexEngineer
Copy link

👍 Love this idea!

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