diff options
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 30d4797b..1c55ef24 100644 --- a/api/src/routes/guilds/#guild_id/channels.ts +++ b/api/src/routes/guilds/#guild_id/channels.ts @@ -24,7 +24,7 @@ router.post("/", check(ChannelModifySchema), async (req: Request, res: Response) const channel = await createChannel({ ...body, guild_id }, req.user_id); - res.json(toObject(channel)); + res.status(201).json(toObject(channel)); }); // TODO: check if parent_id exists |