summary refs log tree commit diff
path: root/api/src/routes/users/@me/notes.ts
diff options
context:
space:
mode:
authoruurgothat <cckhmck@gmail.com>2021-09-30 18:57:53 +0300
committeruurgothat <cckhmck@gmail.com>2021-09-30 18:57:53 +0300
commitd23f4bbe98bec0cdef0c1a4cce961de2c2a83ab1 (patch)
tree441be0d0baab3d28ee438f01cde630c71286ec75 /api/src/routes/users/@me/notes.ts
parentMerge pull request #403 from Thesourtimes/master (diff)
downloadserver-d23f4bbe98bec0cdef0c1a4cce961de2c2a83ab1.tar.xz
hotfix for misc routes
Diffstat (limited to '')
-rw-r--r--api/src/routes/users/@me/notes.ts7
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;