From c073adf3ba3a46651a43cf995383071b2496c918 Mon Sep 17 00:00:00 2001 From: AlTech98 Date: Sun, 12 Sep 2021 19:27:29 +0200 Subject: Add dummy missing routes --- api/src/routes/applications/detectable.ts | 10 ++++++++++ api/src/routes/outbound-promotions.ts | 10 ++++++++++ api/src/routes/users/@me/affinities/user.ts | 10 ---------- api/src/routes/users/@me/affinities/users.ts | 10 ++++++++++ api/src/routes/users/@me/applications/#app_id/entitlements.ts | 10 ++++++++++ api/src/routes/users/@me/billing/country-code.ts | 10 ++++++++++ api/src/routes/users/@me/billing/subscriptions.ts | 10 ++++++++++ 7 files changed, 60 insertions(+), 10 deletions(-) create mode 100644 api/src/routes/applications/detectable.ts create mode 100644 api/src/routes/outbound-promotions.ts delete mode 100644 api/src/routes/users/@me/affinities/user.ts create mode 100644 api/src/routes/users/@me/affinities/users.ts create mode 100644 api/src/routes/users/@me/applications/#app_id/entitlements.ts create mode 100644 api/src/routes/users/@me/billing/country-code.ts create mode 100644 api/src/routes/users/@me/billing/subscriptions.ts diff --git a/api/src/routes/applications/detectable.ts b/api/src/routes/applications/detectable.ts new file mode 100644 index 00000000..e4fbe1e4 --- /dev/null +++ b/api/src/routes/applications/detectable.ts @@ -0,0 +1,10 @@ +import { Request, Response, Router } from "express"; + +const router: Router = Router(); + +router.get("/", async (req: Request, res: Response) => { + //TODO + res.json([]).status(200); +}); + +export default router; \ No newline at end of file diff --git a/api/src/routes/outbound-promotions.ts b/api/src/routes/outbound-promotions.ts new file mode 100644 index 00000000..e4fbe1e4 --- /dev/null +++ b/api/src/routes/outbound-promotions.ts @@ -0,0 +1,10 @@ +import { Request, Response, Router } from "express"; + +const router: Router = Router(); + +router.get("/", async (req: Request, res: Response) => { + //TODO + res.json([]).status(200); +}); + +export default router; \ No newline at end of file diff --git a/api/src/routes/users/@me/affinities/user.ts b/api/src/routes/users/@me/affinities/user.ts deleted file mode 100644 index 0790a8a4..00000000 --- a/api/src/routes/users/@me/affinities/user.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Router, Response, Request } from "express"; - -const router = Router(); - -router.get("/", (req: Request, res: Response) => { - // TODO: - res.status(200).send({ user_affinities: [], inverse_user_affinities: [] }); -}); - -export default router; diff --git a/api/src/routes/users/@me/affinities/users.ts b/api/src/routes/users/@me/affinities/users.ts new file mode 100644 index 00000000..db67ab71 --- /dev/null +++ b/api/src/routes/users/@me/affinities/users.ts @@ -0,0 +1,10 @@ +import { Router, Response, Request } from "express"; + +const router = Router(); + +router.get("/", (req: Request, res: Response) => { + //TODO + res.status(200).send({ user_affinities: [], inverse_user_affinities: [] }); +}); + +export default router; diff --git a/api/src/routes/users/@me/applications/#app_id/entitlements.ts b/api/src/routes/users/@me/applications/#app_id/entitlements.ts new file mode 100644 index 00000000..e4fbe1e4 --- /dev/null +++ b/api/src/routes/users/@me/applications/#app_id/entitlements.ts @@ -0,0 +1,10 @@ +import { Request, Response, Router } from "express"; + +const router: Router = Router(); + +router.get("/", async (req: Request, res: Response) => { + //TODO + res.json([]).status(200); +}); + +export default router; \ No newline at end of file diff --git a/api/src/routes/users/@me/billing/country-code.ts b/api/src/routes/users/@me/billing/country-code.ts new file mode 100644 index 00000000..ac3653a2 --- /dev/null +++ b/api/src/routes/users/@me/billing/country-code.ts @@ -0,0 +1,10 @@ +import { Request, Response, Router } from "express"; + +const router: Router = Router(); + +router.get("/", async (req: Request, res: Response) => { + //TODO + res.json({ "country_code": "US" }).status(200); +}); + +export default router; \ No newline at end of file diff --git a/api/src/routes/users/@me/billing/subscriptions.ts b/api/src/routes/users/@me/billing/subscriptions.ts new file mode 100644 index 00000000..e4fbe1e4 --- /dev/null +++ b/api/src/routes/users/@me/billing/subscriptions.ts @@ -0,0 +1,10 @@ +import { Request, Response, Router } from "express"; + +const router: Router = Router(); + +router.get("/", async (req: Request, res: Response) => { + //TODO + res.json([]).status(200); +}); + +export default router; \ No newline at end of file -- cgit 1.4.1