Tuesday 14 March 2017

Routing problems (Express)

I got the next route.

router.get('/something', function(req, res){
   //Do some querys with req.params and returns answer
})

And I want to create a form which uses /something, but the form send the infomation in the req.query and redirect to /something?param=param so the request passes to the error view. I wonder if it's possible to ignore the content of req.query and use instead the content of params and also solve the problem with the routing error



via Erick Sánchez

No comments:

Post a Comment