diff options
author | AlTech98 <altech123159@gmail.com> | 2021-09-12 19:27:29 +0200 |
---|---|---|
committer | AlTech98 <altech123159@gmail.com> | 2021-09-12 19:27:29 +0200 |
commit | f8932097b44246a93250cc8d6107ceef44f4d5e8 (patch) | |
tree | bef77d5d869dd70a2350438116ca1797d1c99697 /api/src/routes | |
parent | Merge pull request #348 from AlTech98/fix-cdn-upload (diff) | |
download | server-f8932097b44246a93250cc8d6107ceef44f4d5e8.tar.xz |
Add dummy missing routes
Diffstat (limited to 'api/src/routes')
-rw-r--r-- | api/src/routes/applications/detectable.ts | 10 | ||||
-rw-r--r-- | api/src/routes/outbound-promotions.ts | 10 | ||||
-rw-r--r-- | api/src/routes/users/@me/affinities/users.ts (renamed from api/src/routes/users/@me/affinities/user.ts) | 2 | ||||
-rw-r--r-- | api/src/routes/users/@me/applications/#app_id/entitlements.ts | 10 | ||||
-rw-r--r-- | api/src/routes/users/@me/billing/country-code.ts | 10 | ||||
-rw-r--r-- | api/src/routes/users/@me/billing/subscriptions.ts | 10 |
6 files changed, 51 insertions, 1 deletions
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/users.ts index 0790a8a4..db67ab71 100644 --- a/api/src/routes/users/@me/affinities/user.ts +++ b/api/src/routes/users/@me/affinities/users.ts @@ -3,7 +3,7 @@ import { Router, Response, Request } from "express"; const router = Router(); router.get("/", (req: Request, res: Response) => { - // TODO: + //TODO res.status(200).send({ user_affinities: [], inverse_user_affinities: [] }); }); 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 |