204 no content

This commit is contained in:
Riley Davis
2016-11-04 14:06:02 -06:00
parent 2af57b9ab0
commit dba1b04558
2 changed files with 1 additions and 7 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ router.get('/', (req, res, next) => {
});
router.put('/', (req, res, next) => {
Setting.updateSettings(req.body).then(settings => res.json(settings)).catch(next);
Setting.updateSettings(req.body).then(() => res.status(204).end()).catch(next);
});
module.exports = router;
-6
View File
@@ -162,12 +162,6 @@ paths:
responses:
204:
description: Updated Setting
schema:
type: array
items:
$ref: '#/definitions/Setting'
definitions:
Item: