diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-09-21 22:52:30 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-09-21 22:52:30 +0200 |
commit | 2a094c603a35c7174022ec2d2ffa42fa28508e3b (patch) | |
tree | 6d408fbe2e2e9088786208d30509dde8005e73c3 /api/src/routes/guilds/#guild_id/members | |
parent | :bug: fix unittests (diff) | |
download | server-2a094c603a35c7174022ec2d2ffa42fa28508e3b.tar.xz |
:sparkles: generate openapi documentation
Diffstat (limited to 'api/src/routes/guilds/#guild_id/members')
-rw-r--r-- | api/src/routes/guilds/#guild_id/members/#member_id/roles/#role_id/index.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/api/src/routes/guilds/#guild_id/members/#member_id/roles/#role_id/index.ts b/api/src/routes/guilds/#guild_id/members/#member_id/roles/#role_id/index.ts index ae10be82..8f5ca7ba 100644 --- a/api/src/routes/guilds/#guild_id/members/#member_id/roles/#role_id/index.ts +++ b/api/src/routes/guilds/#guild_id/members/#member_id/roles/#role_id/index.ts @@ -4,14 +4,14 @@ import { Request, Response, Router } from "express"; const router = Router(); -router.delete("/:member_id/roles/:role_id", route({ permission: "MANAGE_ROLES" }), async (req: Request, res: Response) => { +router.delete("/", route({ permission: "MANAGE_ROLES" }), async (req: Request, res: Response) => { const { guild_id, role_id, member_id } = req.params; await Member.removeRole(member_id, guild_id, role_id); res.sendStatus(204); }); -router.put("/:member_id/roles/:role_id", route({ permission: "MANAGE_ROLES" }), async (req: Request, res: Response) => { +router.put("/", route({ permission: "MANAGE_ROLES" }), async (req: Request, res: Response) => { const { guild_id, role_id, member_id } = req.params; await Member.addRole(member_id, guild_id, role_id); |