diff options
author | Puyodead1 <puyodead@proton.me> | 2023-03-24 18:14:47 -0400 |
---|---|---|
committer | Puyodead1 <puyodead@proton.me> | 2023-04-13 15:20:10 -0400 |
commit | 6b3a3b750f3e29b491c51f8199efd64c05176a65 (patch) | |
tree | 2f15670152c3fb99630c648a86dd63e0a0b86b74 /src/api/routes/guilds/index.ts | |
parent | AAA (diff) | |
download | server-6b3a3b750f3e29b491c51f8199efd64c05176a65.tar.xz |
fixing lots of openapi crap
Diffstat (limited to 'src/api/routes/guilds/index.ts')
-rw-r--r-- | src/api/routes/guilds/index.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/api/routes/guilds/index.ts b/src/api/routes/guilds/index.ts index c793d185..55fe088e 100644 --- a/src/api/routes/guilds/index.ts +++ b/src/api/routes/guilds/index.ts @@ -16,16 +16,16 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. */ -import { Router, Request, Response } from "express"; +import { route } from "@spacebar/api"; import { - Guild, Config, - getRights, - Member, DiscordApiErrors, + Guild, GuildCreateSchema, + Member, + getRights, } from "@spacebar/util"; -import { route } from "@spacebar/api"; +import { Request, Response, Router } from "express"; const router: Router = Router(); @@ -33,7 +33,7 @@ const router: Router = Router(); router.post( "/", - route({ body: "GuildCreateSchema", right: "CREATE_GUILDS" }), + route({ requestBody: "GuildCreateSchema", right: "CREATE_GUILDS" }), async (req: Request, res: Response) => { const body = req.body as GuildCreateSchema; |