Answer the question
In order to leave comments, you need to log in
Is it possible to somehow pass nested get parameters?
Is it possible somehow to pass nested get parameters and then process them in express ?
{
id: 1,
params: {
param1: 1,
params2: 2
}
}
router.get("/products", async (req, res) => {
console.log(req.query.params.param1)
})
Answer the question
In order to leave comments, you need to log in
In get, it is passed through a string in the url:
mysite.com/products?id=123
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question