summary refs log tree commit diff
path: root/api/src/routes/users/@me/notes.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-01 20:08:56 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-01 20:08:56 +0200
commitbd9a6b38f227e5ef08b78a98a9d0a3eaf1f32c9c (patch)
tree6943933d61009e423db1613f669732ccafa9724e /api/src/routes/users/@me/notes.ts
parent:sparkles: new user flags (diff)
parentMerge pull request #404 from Thesourtimes/master (diff)
downloadserver-bd9a6b38f227e5ef08b78a98a9d0a3eaf1f32c9c.tar.xz
Merge branch 'master' of http://github.com/fosscord/fosscord-server
Diffstat (limited to '')
-rw-r--r--api/src/routes/users/@me/notes.ts (renamed from api/src/routes/store/applications.ts)8
1 files changed, 5 insertions, 3 deletions
diff --git a/api/src/routes/store/applications.ts b/api/src/routes/users/@me/notes.ts

index 352c1752..2ef27bc0 100644 --- a/api/src/routes/store/applications.ts +++ b/api/src/routes/users/@me/notes.ts
@@ -3,10 +3,12 @@ import { route } from "@fosscord/api"; const router: Router = Router(); -router.get("/applications/:id", route({}), async (req: Request, res: Response) => { +router.put("/:id", route({}), async (req: Request, res: Response) => { //TODO - const { id } = req.params; - res.json([]).status(200); + res.json({ + message: "400: Bad Request", + code: 0 + }).status(400); }); export default router;