- updated styles
- added edit functionality
This commit is contained in:
Luke Vella 2015-01-12 12:09:00 +01:00
parent 2630cc237a
commit b72dfc474e
21 changed files with 136 additions and 52 deletions

View file

@ -18,6 +18,12 @@ exports.show = function(req, res, next){
});
}
exports.update = function(req, res){
Event.update({ '_id' : req.params.id }, req.body, function(){
return res.status(204).end();
});
}
exports.createParticipant = function(req, res, next){
var eventId = req.params.id;
var participant = req.body;