diff --git a/controllers/runs.js b/controllers/runs.js index 9fcb93b..9ba34f6 100644 --- a/controllers/runs.js +++ b/controllers/runs.js @@ -23,4 +23,17 @@ controller.delete('/:id', function(req, res){ }); }); +controller.put('/:id', function(req, res){ + Runs.update( + req.body, + { + where: { + id: req.params.id + } + } + ).then(function(data){ + res.json(data); + }); +}); + module.exports = controller;