Advertisement
Guest User

Untitled

a guest
Apr 27th, 2015
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. exports.create = function(req, res) {
  2. return Group.create(req.body)
  3. .then(function(Group) {
  4. return res.status(201).json(Group);
  5. })
  6. .then(null, handleError(res));
  7. };
  8.  
  9. router.post('/', controller.create);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement