Skip to content

Commit

Permalink
Update view and api spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Archit404Error committed Sep 30, 2023
1 parent 4e22318 commit c8965bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 1 addition & 8 deletions backend/api-spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,6 @@
"responses": {
"200": {
"description": "OK"
},
"400": {
"description": "Bad Request"
}
}
}
Expand Down Expand Up @@ -159,11 +156,7 @@
}
}
],
"responses": {
"201": {
"description": "Created"
}
}
"responses": {}
}
},
"/apps/update-image/{id}": {
Expand Down
2 changes: 1 addition & 1 deletion backend/src/apps/views.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit c8965bf

Please sign in to comment.