From b1d55783f4251f86bb377ef0f41e0cc45feb48d4 Mon Sep 17 00:00:00 2001 From: Felix Albrigtsen Date: Tue, 29 Mar 2022 16:10:00 +0200 Subject: [PATCH] Change from HTTP POST to HTTP DELETE --- src/server/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/index.js b/src/server/index.js index c8ffd27..5bdc0c0 100644 --- a/src/server/index.js +++ b/src/server/index.js @@ -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"});