I have a problem to make the route for this url:
http://localhost:3000/api/tests?filter%5Bcodeid%5D=eeee
At the moment i tried this:
app.route('/api/tests?filter[codeid:id]')
.get((req, res) => {
console.log('It works');
res.status(200).send({
msg: 'It works'
});
});
But when I test my server with postman I have this result:
Cannot GET /api/tests?filter%5Bcodeid%5D=eeee
Someone has any idea of how manage this ?
Aucun commentaire:
Enregistrer un commentaire