summary refs log tree commit diff
path: root/src/api/routes/users
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-12-19 20:32:26 +0100
committerRory& <root@rory.gay>2025-12-19 20:32:26 +0100
commit9d4e3d39f4d18b5a7735d1666e464cf2bfb60c52 (patch)
tree74f9ec2d4bab504c22789f23f80626844a18d128 /src/api/routes/users
parentFix style in scripts/schemaExclusions.json (diff)
downloadserver-ts-9d4e3d39f4d18b5a7735d1666e464cf2bfb60c52.tar.xz
Dont use promises for dummy endpoints
Diffstat (limited to 'src/api/routes/users')
-rw-r--r--src/api/routes/users/@me/applications/#application_id/entitlements.ts2
-rw-r--r--src/api/routes/users/@me/billing/country-code.ts2
-rw-r--r--src/api/routes/users/@me/billing/location-info.ts2
-rw-r--r--src/api/routes/users/@me/billing/subscriptions.ts2
-rw-r--r--src/api/routes/users/@me/collectibles-marketing.ts2
-rw-r--r--src/api/routes/users/@me/collectibles-purchases.ts2
6 files changed, 6 insertions, 6 deletions
diff --git a/src/api/routes/users/@me/applications/#application_id/entitlements.ts b/src/api/routes/users/@me/applications/#application_id/entitlements.ts

index e8e6f657..6641df6a 100644 --- a/src/api/routes/users/@me/applications/#application_id/entitlements.ts +++ b/src/api/routes/users/@me/applications/#application_id/entitlements.ts
@@ -21,7 +21,7 @@ import { route } from "@spacebar/api"; const router: Router = Router({ mergeParams: true }); -router.get("/", route({}), async (req: Request, res: Response) => { +router.get("/", route({}), (req: Request, res: Response) => { //TODO res.json([]).status(200); }); diff --git a/src/api/routes/users/@me/billing/country-code.ts b/src/api/routes/users/@me/billing/country-code.ts
index 8bddafc3..dd2be6d4 100644 --- a/src/api/routes/users/@me/billing/country-code.ts +++ b/src/api/routes/users/@me/billing/country-code.ts
@@ -21,7 +21,7 @@ import { route } from "@spacebar/api"; const router: Router = Router({ mergeParams: true }); -router.get("/", route({}), async (req: Request, res: Response) => { +router.get("/", route({}), (req: Request, res: Response) => { //TODO res.json({ country_code: "US" }).status(200); }); diff --git a/src/api/routes/users/@me/billing/location-info.ts b/src/api/routes/users/@me/billing/location-info.ts
index 918ea913..5a57c0ea 100644 --- a/src/api/routes/users/@me/billing/location-info.ts +++ b/src/api/routes/users/@me/billing/location-info.ts
@@ -21,7 +21,7 @@ import { route } from "@spacebar/api"; const router: Router = Router({ mergeParams: true }); -router.get("/", route({}), async (req: Request, res: Response) => { +router.get("/", route({}), (req: Request, res: Response) => { //TODO // TODO: subdivision_code (optional) res.json({ country_code: "US" }).status(200); diff --git a/src/api/routes/users/@me/billing/subscriptions.ts b/src/api/routes/users/@me/billing/subscriptions.ts
index e8e6f657..6641df6a 100644 --- a/src/api/routes/users/@me/billing/subscriptions.ts +++ b/src/api/routes/users/@me/billing/subscriptions.ts
@@ -21,7 +21,7 @@ import { route } from "@spacebar/api"; const router: Router = Router({ mergeParams: true }); -router.get("/", route({}), async (req: Request, res: Response) => { +router.get("/", route({}), (req: Request, res: Response) => { //TODO res.json([]).status(200); }); diff --git a/src/api/routes/users/@me/collectibles-marketing.ts b/src/api/routes/users/@me/collectibles-marketing.ts
index a043a146..f7d24623 100644 --- a/src/api/routes/users/@me/collectibles-marketing.ts +++ b/src/api/routes/users/@me/collectibles-marketing.ts
@@ -39,7 +39,7 @@ router.get( }, }, }), - async (req: Request, res: Response) => { + (req: Request, res: Response) => { res.send({ marketings: {}, } as CollectiblesMarketingResponse); diff --git a/src/api/routes/users/@me/collectibles-purchases.ts b/src/api/routes/users/@me/collectibles-purchases.ts
index 1e6a08d0..26f23ed6 100644 --- a/src/api/routes/users/@me/collectibles-purchases.ts +++ b/src/api/routes/users/@me/collectibles-purchases.ts
@@ -38,7 +38,7 @@ router.get( }, }, }), - async (req: Request, res: Response) => { + (req: Request, res: Response) => { res.send([]); }, );