Merge branch 'master' into status-history

This commit is contained in:
Wyatt Johnson
2016-12-06 11:08:00 -05:00
committed by GitHub
25 changed files with 632 additions and 164 deletions
+8
View File
@@ -96,4 +96,12 @@ router.put('/:asset_id/settings', (req, res, next) => {
});
router.put('/:asset_id/status', (req, res, next) => {
// Update the asset status
Asset
.update({id: req.params.asset_id}, {status: req.query.status})
.then(() => res.status(204).end())
.catch((err) => next(err));
});
module.exports = router;