diff --git a/backend/api-spec.json b/backend/api-spec.json index bdea31f..c7851ea 100644 --- a/backend/api-spec.json +++ b/backend/api-spec.json @@ -102,9 +102,6 @@ "responses": { "200": { "description": "OK" - }, - "400": { - "description": "Bad Request" } } } @@ -159,11 +156,7 @@ } } ], - "responses": { - "201": { - "description": "Created" - } - } + "responses": {} } }, "/apps/update-image/{id}": { diff --git a/backend/src/apps/views.ts b/backend/src/apps/views.ts index f07169a..0aaa1d7 100644 --- a/backend/src/apps/views.ts +++ b/backend/src/apps/views.ts @@ -41,7 +41,7 @@ appRouter.post("/status/:id", async (req, res, next) => { req.body.startTime, req.body.endTime ).catch((err) => next(err)); - // res.status(201).send(successJson("status updated")); + res.status(201).send(successJson("status updated")); }); appRouter.post("/update-image/:id", async (req, res) => {