Implemented a delete button for mods and fixed an issue in the backend
This commit is contained in:
parent
60e557826e
commit
5af16b593c
7 changed files with 240 additions and 45 deletions
|
|
@ -14,6 +14,6 @@
|
|||
|
||||
"auth": {
|
||||
"JWT_secret": "HGF7654EGBNKJNBJH6754356788GJHGY",
|
||||
"tokenExpiry": "1h"
|
||||
"tokenExpiry": "30d"
|
||||
}
|
||||
}
|
||||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue