mirror of
https://github.com/spacebarchat/server.git
synced 2026-08-05 14:49:34 +00:00
Lower missing route to WARN, add empty route middlewares
This commit is contained in:
@@ -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) {
|
||||
|
||||
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user