summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-02-25 08:08:39 +0100
committerRory& <root@rory.gay>2026-02-25 08:08:39 +0100
commit7b04349878abfa2d12825012acb30e8d53badb4d (patch)
tree0c6ddeff7ee2dc8ccb5e069dff0b0627023e39b4 /src
parentMerge remote-tracking branch 'mathium05/memberEditScrewUp' (diff)
downloadserver-ts-7b04349878abfa2d12825012acb30e8d53badb4d.tar.xz
Lower missing route to WARN, add empty route middlewares
Diffstat (limited to 'src')
-rw-r--r--src/api/routes/applications/#application_id/commands/#command_id/index.ts2
-rw-r--r--src/api/routes/applications/#application_id/guilds/#guild_id/commands/#command_id/index.ts2
-rw-r--r--src/api/routes/channels/#channel_id/attachments.ts2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/api/routes/applications/#application_id/commands/#command_id/index.ts b/src/api/routes/applications/#application_id/commands/#command_id/index.ts

index 55011042..e0618613 100644 --- a/src/api/routes/applications/#application_id/commands/#command_id/index.ts +++ b/src/api/routes/applications/#application_id/commands/#command_id/index.ts
@@ -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) { diff --git a/src/api/routes/applications/#application_id/guilds/#guild_id/commands/#command_id/index.ts b/src/api/routes/applications/#application_id/guilds/#guild_id/commands/#command_id/index.ts
index e4f847c3..16d7786b 100644 --- a/src/api/routes/applications/#application_id/guilds/#guild_id/commands/#command_id/index.ts +++ b/src/api/routes/applications/#application_id/guilds/#guild_id/commands/#command_id/index.ts
@@ -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) { diff --git a/src/api/routes/channels/#channel_id/attachments.ts b/src/api/routes/channels/#channel_id/attachments.ts
index bf3c70fb..2b3fd355 100644 --- a/src/api/routes/channels/#channel_id/attachments.ts +++ b/src/api/routes/channels/#channel_id/attachments.ts
@@ -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;