Change from HTTP POST to HTTP DELETE

This commit is contained in:
Felix Albrigtsen 2022-03-29 16:10:00 +02:00
parent 0ae9c54755
commit b1d55783f4
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ api.get("/team/:teamId", (req, res) => {
.catch(err => res.send({"status": "error", "data": err}));
});
api.post("/team/:teamId/delete", (req, res) => {
api.delete("/team/:teamId", (req, res) => {
let teamId = req.params.teamId;
if (isNaN(teamId)) {
res.json({"status": "error", "data": "teamId must be a number"});