diff options
Diffstat (limited to 'src/api/routes/users/#id/relationships.ts')
-rw-r--r-- | src/api/routes/users/#id/relationships.ts | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/api/routes/users/#id/relationships.ts b/src/api/routes/users/#id/relationships.ts index f18672b1..7accad3b 100644 --- a/src/api/routes/users/#id/relationships.ts +++ b/src/api/routes/users/#id/relationships.ts @@ -24,7 +24,14 @@ const router: Router = Router(); router.get( "/", - route({ responses: { 200: { body: "UserRelationsResponse" } } }), + route({ + responses: { + 200: { body: "UserRelationsResponse" }, + 404: { + body: "APIErrorResponse", + }, + }, + }), async (req: Request, res: Response) => { const mutual_relations: object[] = []; const requested_relations = await User.findOneOrFail({ |