Lower missing route to WARN, add empty route middlewares

This commit is contained in:
Rory&
2026-02-25 08:08:39 +01:00
parent 4bc313872e
commit 7b04349878
4 changed files with 5 additions and 5 deletions
@@ -100,7 +100,7 @@ router.patch(
},
);
router.delete("/", async (req: Request, res: Response) => {
router.delete("/", route({}), async (req: Request, res: Response) => {
const applicationExists = await Application.exists({ where: { id: req.params.application_id as string } });
if (!applicationExists) {
@@ -131,7 +131,7 @@ router.patch(
},
);
router.delete("/", async (req: Request, res: Response) => {
router.delete("/", route({}), async (req: Request, res: Response) => {
const applicationExists = await Application.exists({ where: { id: req.params.application_id as string } });
if (!applicationExists) {
@@ -99,7 +99,7 @@ router.post(
},
);
router.delete("/:cloud_attachment_url", async (req: Request, res: Response) => {
router.delete("/:cloud_attachment_url", route({}), async (req: Request, res: Response) => {
const { channel_id, cloud_attachment_url } = req.params as { [key: string]: string };
const user = req.user;