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
router: a simple way to extract params from a query #45
Comments
Those are typically things a higher level framework built in connect would provide. Closing for now |
So are things like |
I can agree with that. |
I think 'we' need to start having another folder or repo of cool middlewares that aren't core, but still very useful - this params middleware would fit right in there. |
yeah i agree. Even if its just a wiki page or something. Managing them all under one repo is a bit annoying |
Hi,
Using router middleware, I can only extract params from a query string by parsing req:
app.get('/search', function(req, res){
var q = require('url').parse(req.url, true)['query']['q'];
res.simpleBody('200', q);
});
is it normal? I think it would be pretty good to add functionality making this process easier.
And also a method to check is it ajax request or not.
Thanks.
The text was updated successfully, but these errors were encountered: