Answers for "Multiple parameters express"

0

Multiple parameters express

app.get('/fruit/:one&:two', function(req, res) {
    console.log(req.params.one, req.params.two)
});
Posted by: Guest on October-20-2021
0

expressjs path multiple params

app.get('/fruit/:fruitName/:fruitColor', function(req, res) {
    var data = {
        "fruit": {
            "apple": req.params.fruitName,
            "color": req.params.fruitColor
        }
    }; 

    send.json(data);
});
Posted by: Guest on January-29-2021

Code answers related to "Multiple parameters express"

Code answers related to "Javascript"

Browse Popular Code Answers by Language