diff options
author | uurgothat <cckhmck@gmail.com> | 2021-09-30 18:57:53 +0300 |
---|---|---|
committer | uurgothat <cckhmck@gmail.com> | 2021-09-30 18:57:53 +0300 |
commit | 7ae37c53719c782838c5cf77c3ad719ca20d72df (patch) | |
tree | b9e42dc2d87d15e5c86f35c8d574794353a48119 /api/src/routes/users | |
parent | Merge pull request #403 from Thesourtimes/master (diff) | |
download | server-7ae37c53719c782838c5cf77c3ad719ca20d72df.tar.xz |
hotfix for misc routes
Diffstat (limited to 'api/src/routes/users')
-rw-r--r-- | api/src/routes/users/@me/entitlements.ts | 1 | ||||
-rw-r--r-- | api/src/routes/users/@me/guilds/premium/subscription-slots.ts | 2 | ||||
-rw-r--r-- | api/src/routes/users/@me/notes.ts | 7 |
3 files changed, 6 insertions, 4 deletions
diff --git a/api/src/routes/users/@me/entitlements.ts b/api/src/routes/users/@me/entitlements.ts index 7be3634b..341e2b4c 100644 --- a/api/src/routes/users/@me/entitlements.ts +++ b/api/src/routes/users/@me/entitlements.ts @@ -5,7 +5,6 @@ const router = Router(); router.get("/gifts", route({}), (req: Request, res: Response) => { // TODO: - //const { locale, primary_only } = req.query; res.json([]).status(200); }); diff --git a/api/src/routes/users/@me/guilds/premium/subscription-slots.ts b/api/src/routes/users/@me/guilds/premium/subscription-slots.ts index b487a2ce..014df8af 100644 --- a/api/src/routes/users/@me/guilds/premium/subscription-slots.ts +++ b/api/src/routes/users/@me/guilds/premium/subscription-slots.ts @@ -5,7 +5,7 @@ const router = Router(); router.get("/", route({}), (req: Request, res: Response) => { // TODO: - res.json([]).status(200)); + res.json([]).status(200); }); export default router; diff --git a/api/src/routes/users/@me/notes.ts b/api/src/routes/users/@me/notes.ts index 235c2baf..2ef27bc0 100644 --- a/api/src/routes/users/@me/notes.ts +++ b/api/src/routes/users/@me/notes.ts @@ -3,9 +3,12 @@ import { route } from "@fosscord/api"; const router: Router = Router(); -router.put("/", route({}), async (req: Request, res: Response) => { +router.put("/:id", route({}), async (req: Request, res: Response) => { //TODO - res.json({code: 0}).status(400); + res.json({ + message: "400: Bad Request", + code: 0 + }).status(400); }); export default router; |