mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 13:07:08 +00:00
Change HTTP response status from 201 to 204
This commit is contained in:
@@ -7,7 +7,7 @@ module.exports = async function (req, res, next) {
|
||||
const payload = req.body;
|
||||
|
||||
await line.patch(req.params.project, req.params.line, payload);
|
||||
res.status(201).send();
|
||||
res.status(204).send();
|
||||
next();
|
||||
} catch (err) {
|
||||
next(err);
|
||||
|
||||
@@ -7,7 +7,7 @@ module.exports = async function (req, res, next) {
|
||||
const payload = req.body;
|
||||
|
||||
await plan.delete(req.params.project, req.params.sequence);
|
||||
res.status(201).send();
|
||||
res.status(204).send();
|
||||
next();
|
||||
} catch (err) {
|
||||
next(err);
|
||||
|
||||
Reference in New Issue
Block a user