summary refs log tree commit diff
path: root/api/src/routes
diff options
context:
space:
mode:
Diffstat (limited to 'api/src/routes')
-rw-r--r--api/src/routes/channels/#channel_id/messages/#message_id/crosspost.ts1
-rw-r--r--api/src/routes/store/published-listings/applications.ts3
-rw-r--r--api/src/routes/store/published-listings/skus.ts3
-rw-r--r--api/src/routes/users/@me/entitlements.ts1
-rw-r--r--api/src/routes/users/@me/guilds/premium/subscription-slots.ts2
-rw-r--r--api/src/routes/users/@me/notes.ts7
6 files changed, 10 insertions, 7 deletions
diff --git a/api/src/routes/channels/#channel_id/messages/#message_id/crosspost.ts b/api/src/routes/channels/#channel_id/messages/#message_id/crosspost.ts
index 8174a61f..de0c01f1 100644
--- a/api/src/routes/channels/#channel_id/messages/#message_id/crosspost.ts
+++ b/api/src/routes/channels/#channel_id/messages/#message_id/crosspost.ts
@@ -5,7 +5,6 @@ const router = Router();
 
 router.post("/", route({ permission: "MANAGE_MESSAGES" }), (req: Request, res: Response) => {
 	// TODO:
-    //const { locale, primary_only } = req.query;
 	res.json({
         id: "", 
         type: 0, 
diff --git a/api/src/routes/store/published-listings/applications.ts b/api/src/routes/store/published-listings/applications.ts
index 53b61c29..f06a01e4 100644
--- a/api/src/routes/store/published-listings/applications.ts
+++ b/api/src/routes/store/published-listings/applications.ts
@@ -3,8 +3,9 @@ import { route } from "@fosscord/api";
 
 const router: Router = Router();
 
-router.get("/", route({}), async (req: Request, res: Response) => {
+router.get("/:id", route({}), async (req: Request, res: Response) => {
 	//TODO
+	const id = req.params.id;
 	res.json({
 		id: "",
 		summary: "",
diff --git a/api/src/routes/store/published-listings/skus.ts b/api/src/routes/store/published-listings/skus.ts
index 53b61c29..f06a01e4 100644
--- a/api/src/routes/store/published-listings/skus.ts
+++ b/api/src/routes/store/published-listings/skus.ts
@@ -3,8 +3,9 @@ import { route } from "@fosscord/api";
 
 const router: Router = Router();
 
-router.get("/", route({}), async (req: Request, res: Response) => {
+router.get("/:id", route({}), async (req: Request, res: Response) => {
 	//TODO
+	const id = req.params.id;
 	res.json({
 		id: "",
 		summary: "",
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;