Lower missing route to WARN, add empty route middlewares

This commit is contained in:
Rory& committed 2026-02-25 08:08:39 +01:00
1 parent 4bc313872e
commit 7b04349878
4 files changed
+5 -5

No files matched your search

@@ -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;