Merge pull request #774 from city-unit/feature/delete

More general/functionalized char delete methods
This commit is contained in:
Cohee
2023-07-24 22:45:41 +03:00
committed by GitHub
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);
}