mirror of
https://github.com/wassname/talk.git
synced 2026-07-26 13:37:38 +08:00
204 no content
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -162,12 +162,6 @@ paths:
|
||||
responses:
|
||||
204:
|
||||
description: Updated Setting
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/definitions/Setting'
|
||||
|
||||
|
||||
|
||||
definitions:
|
||||
Item:
|
||||
|
||||
Reference in New Issue
Block a user