get value from path variable node js

Solutions on MaxInterview for get value from path variable node js by the best coders in the world

showing results for - "get value from path variable node js"
Laura
21 Aug 2017
1exports.doIt = function(req, res, next) {
2    var group = new Group(req.body);
3
4    console.log(req.params);
5
6    group.userId = req.params.userId;
7
8    group.save(new dataCallbacks(req, res, next, "Group").insert());
9});