Update capes.js
This commit is contained in:
parent
fab7066ee3
commit
9ac904ba08
@ -2,7 +2,6 @@ const express = require("express")
|
||||
const path = require("node:path")
|
||||
const multer = require("multer")
|
||||
const router = express.Router()
|
||||
const userService = require("../../../services/userService")
|
||||
const adminService = require("../../../services/adminService")
|
||||
|
||||
const upload = multer({ dest: path.join(process.cwd(), "data/temp/") })
|
||||
@ -13,7 +12,7 @@ router.post("/upload", adminService.hasPermission("UPLOAD_CAPE"), upload.single(
|
||||
})
|
||||
|
||||
router.delete("/:hash", adminService.hasPermission("DELETE_CAPES"), async (req, res) => {
|
||||
const result = await userService.deleteCape(req.params.hash)
|
||||
const result = await adminService.deleteCape(req.params.hash)
|
||||
res.status(200).json(result)
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user