Implemented a delete button for mods and fixed an issue in the backend

This commit is contained in:
Gu://em_ 2025-05-17 02:27:56 +02:00
parent 60e557826e
commit 5af16b593c
7 changed files with 240 additions and 45 deletions

View file

@ -14,6 +14,6 @@
"auth": {
"JWT_secret": "HGF7654EGBNKJNBJH6754356788GJHGY",
"tokenExpiry": "1h"
"tokenExpiry": "30d"
}
}

View file

@ -53,7 +53,7 @@ async function getModByName(req, res) {
async function deleteMod(req, res) {
try {
// Authorize
authorizeModModification(req);
await authorizeModModification(req);
// Query
const name = req.params.name
const query_result = await mod_service.deleteMod(name);