diff options
author | Puyodead1 <puyodead@proton.me> | 2023-03-24 21:21:21 -0400 |
---|---|---|
committer | Puyodead1 <puyodead@proton.me> | 2023-04-13 15:28:41 -0400 |
commit | c2ce88dee726bb6c1993bf4615aa866d089ca494 (patch) | |
tree | f5b3fe7d7d1e23b5f2ce6540c7e78d34b4c1e43f /src/api/routes/guilds/#guild_id/invites.ts | |
parent | Update openapi.json (diff) | |
download | server-c2ce88dee726bb6c1993bf4615aa866d089ca494.tar.xz |
guilds
Diffstat (limited to 'src/api/routes/guilds/#guild_id/invites.ts')
-rw-r--r-- | src/api/routes/guilds/#guild_id/invites.ts | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/api/routes/guilds/#guild_id/invites.ts b/src/api/routes/guilds/#guild_id/invites.ts index 9c446928..219b6a4f 100644 --- a/src/api/routes/guilds/#guild_id/invites.ts +++ b/src/api/routes/guilds/#guild_id/invites.ts @@ -16,15 +16,22 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. */ -import { Invite, PublicInviteRelation } from "@spacebar/util"; import { route } from "@spacebar/api"; +import { Invite, PublicInviteRelation } from "@spacebar/util"; import { Request, Response, Router } from "express"; const router = Router(); router.get( "/", - route({ permission: "MANAGE_GUILD" }), + route({ + permission: "MANAGE_GUILD", + responses: { + 200: { + body: "GuildInvitesResponse", + }, + }, + }), async (req: Request, res: Response) => { const { guild_id } = req.params; |