i have this route:
router.get("/filter",views.filter)
and this function:
function filter(req,res){
console.log(req.body)]
res.send('test')
}
that should receive data from a form via GET method, but always returns an empty object. When i change it to post, i can easily use body-parser to get the form data, but i need to do that with get method, how can i do this? I know that i could use the req object passed to the function to get the url of the form and use string methods to get a object with form Data, but i think that there is some express(or a library) function that does that.