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
commitf4aca2487643b4cc7e4c4b02dcc0cbb133e0a64d (patch)
tree2358d3bdd4fc86f962203ce452f0ac4c3f465807 /api/src/routes/users/@me/notes.ts
parent:sparkles: new user flags (diff)
parentMerge pull request #404 from Thesourtimes/master (diff)
downloadserver-f4aca2487643b4cc7e4c4b02dcc0cbb133e0a64d.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;