diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-03-24 04:16:58 +1100 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-03-24 04:16:58 +1100 |
commit | 0f928e479cbd81b17710da5dad14a092f23cdf0d (patch) | |
tree | d885d84ba47d601c4ba064e1cf47d1369198c617 /src/api | |
parent | Merge branch 'master' of github.com:fosscord/fosscord-server (diff) | |
download | server-0f928e479cbd81b17710da5dad14a092f23cdf0d.tar.xz |
Work towards fixing openapi spec
Diffstat (limited to 'src/api')
-rw-r--r-- | src/api/routes/gateway/bot.ts | 11 | ||||
-rw-r--r-- | src/api/routes/gateway/index.ts | 4 | ||||
-rw-r--r-- | src/api/routes/users/#id/profile.ts | 9 | ||||
-rw-r--r-- | src/api/routes/users/#id/relationships.ts | 10 |
4 files changed, 0 insertions, 34 deletions
diff --git a/src/api/routes/gateway/bot.ts b/src/api/routes/gateway/bot.ts index 070debe3..02049b19 100644 --- a/src/api/routes/gateway/bot.ts +++ b/src/api/routes/gateway/bot.ts @@ -22,17 +22,6 @@ import { route, RouteOptions } from "@fosscord/api"; const router = Router(); -export interface GatewayBotResponse { - url: string; - shards: number; - session_start_limit: { - total: number; - remaining: number; - reset_after: number; - max_concurrency: number; - }; -} - const options: RouteOptions = { test: { response: { diff --git a/src/api/routes/gateway/index.ts b/src/api/routes/gateway/index.ts index e6fcf5e3..f5ed4c1f 100644 --- a/src/api/routes/gateway/index.ts +++ b/src/api/routes/gateway/index.ts @@ -22,10 +22,6 @@ import { route, RouteOptions } from "@fosscord/api"; const router = Router(); -export interface GatewayResponse { - url: string; -} - const options: RouteOptions = { test: { response: { diff --git a/src/api/routes/users/#id/profile.ts b/src/api/routes/users/#id/profile.ts index dbf95a52..92b4a0fc 100644 --- a/src/api/routes/users/#id/profile.ts +++ b/src/api/routes/users/#id/profile.ts @@ -18,9 +18,7 @@ import { Router, Request, Response } from "express"; import { - PublicConnectedAccount, User, - UserPublic, Member, UserProfileModifySchema, handleFile, @@ -32,13 +30,6 @@ import { route } from "@fosscord/api"; const router: Router = Router(); -export interface UserProfileResponse { - user: UserPublic; - connected_accounts: PublicConnectedAccount; - premium_guild_since?: Date; - premium_since?: Date; -} - router.get( "/", route({ test: { response: { body: "UserProfileResponse" } } }), diff --git a/src/api/routes/users/#id/relationships.ts b/src/api/routes/users/#id/relationships.ts index e915e3ff..04a407b7 100644 --- a/src/api/routes/users/#id/relationships.ts +++ b/src/api/routes/users/#id/relationships.ts @@ -22,16 +22,6 @@ import { route } from "@fosscord/api"; const router: Router = Router(); -export interface UserRelationsResponse { - object: { - id?: string; - username?: string; - avatar?: string; - discriminator?: string; - public_flags?: number; - }; -} - router.get( "/", route({ test: { response: { body: "UserRelationsResponse" } } }), |