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 | d23f4bbe98bec0cdef0c1a4cce961de2c2a83ab1 (patch) | |
tree | 441be0d0baab3d28ee438f01cde630c71286ec75 /api/src/routes/users/@me/notes.ts | |
parent | Merge pull request #403 from Thesourtimes/master (diff) | |
download | server-d23f4bbe98bec0cdef0c1a4cce961de2c2a83ab1.tar.xz |
hotfix for misc routes
Diffstat (limited to '')
-rw-r--r-- | api/src/routes/users/@me/notes.ts | 7 |
1 files changed, 5 insertions, 2 deletions
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; |