Work towards fixing openapi spec

This commit is contained in:
Madeline
2023-03-24 04:16:58 +11:00
parent 1fd01fa000
commit 0f928e479c
14 changed files with 8029 additions and 261 deletions
-9
View File
@@ -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" } } }),
-10
View File
@@ -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" } } }),