β¨οΈParameters aka params
Let's get user parameters using a basic command
server.get("/testApi/:customParamName", (req,res) => {
res.text(req.params.customParamName)
})
If you enter the "localhost:80/testApi/123" in browser you'll see "123". It doesnt matter the name after " : " but you should use this in req.params . If you have any questions please contact and ask to us.
Last updated
Was this helpful?