Move delete calls to functions, generalize delete endpoint.

This commit is contained in:
city-unit
2023-07-24 15:05:27 -04:00
parent b6243cdbe1
commit 8fdea22379
2 changed files with 69 additions and 50 deletions

View File

@@ -1108,7 +1108,7 @@ app.post("/editcharacterattribute", jsonParser, async function (request, respons
}
});
app.post("/deletecharacter", urlencodedParser, async function (request, response) {
app.post("/deletecharacter", jsonParser, async function (request, response) {
if (!request.body || !request.body.avatar_url) {
return response.sendStatus(400);
}