diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-09-18 01:49:17 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-09-18 01:49:17 +0200 |
commit | 54412a3364b1dc7f0703fe724a638ae17d7c4142 (patch) | |
tree | 6f5b66685fff7e3227dbf5989e66eecf48c14be9 /api/src/routes/guilds/#guild_id/channels.ts | |
parent | :bug: fix body parse treating null not as undefined (except for icons/avatars) (diff) | |
download | server-54412a3364b1dc7f0703fe724a638ae17d7c4142.tar.xz |
:pencil: add default route description to all routes
Diffstat (limited to 'api/src/routes/guilds/#guild_id/channels.ts')
-rw-r--r-- | api/src/routes/guilds/#guild_id/channels.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/routes/guilds/#guild_id/channels.ts b/api/src/routes/guilds/#guild_id/channels.ts index 13c6b515..a36e5448 100644 --- a/api/src/routes/guilds/#guild_id/channels.ts +++ b/api/src/routes/guilds/#guild_id/channels.ts @@ -5,7 +5,7 @@ import { route } from "@fosscord/api"; import { ChannelModifySchema } from "../../channels/#channel_id"; const router = Router(); -router.get("/", async (req: Request, res: Response) => { +router.get("/", route({}), async (req: Request, res: Response) => { const { guild_id } = req.params; const channels = await Channel.find({ guild_id }); |