// GET a specific config router.get("/configs/:cID", function(req, res, next){ res.json(req.config) })
// PUT update a specific config router.put("/configs/:cID", function(req, res){ req.config.update(req.body, function(err, result){ if(err) return next(err); res.json(result); }); });
// DELETE a specific config router.delete("/configs/:cID", function(req, res){ req.config.remove(function(err){ if(err) return next(err); res.json({"message": "ok"}) }); });