aboutsummaryrefslogtreecommitdiff
path: root/src/routes/api/subsplease/+server.ts
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-10-09 00:41:20 -0700
committerFuwn <[email protected]>2024-10-09 00:41:43 -0700
commit998b63a35256ac985a5a2714dd1ca451af4dfd8a (patch)
tree50796121a9d5ab0330fdc5d7e098bda2860d9726 /src/routes/api/subsplease/+server.ts
parentfeat(graphql): add badgeCount field (diff)
downloaddue.moe-998b63a35256ac985a5a2714dd1ca451af4dfd8a.tar.xz
due.moe-998b63a35256ac985a5a2714dd1ca451af4dfd8a.zip
chore(prettier): use spaces instead of tabs
Diffstat (limited to 'src/routes/api/subsplease/+server.ts')
-rw-r--r--src/routes/api/subsplease/+server.ts30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/routes/api/subsplease/+server.ts b/src/routes/api/subsplease/+server.ts
index 82631047..93e734c2 100644
--- a/src/routes/api/subsplease/+server.ts
+++ b/src/routes/api/subsplease/+server.ts
@@ -1,16 +1,16 @@
export const GET = async ({ url }) =>
- Response.json(
- await (
- await fetch(
- `https://subsplease.org/api/?f=schedule&tz=${
- url.searchParams.get('tz') || 'America/Los_Angeles'
- }`
- )
- ).json(),
- {
- headers: {
- 'Cache-Control': 'max-age=86400, s-maxage=86400',
- 'Access-Control-Allow-Origin': 'https://due.moe'
- }
- }
- );
+ Response.json(
+ await (
+ await fetch(
+ `https://subsplease.org/api/?f=schedule&tz=${
+ url.searchParams.get('tz') || 'America/Los_Angeles'
+ }`
+ )
+ ).json(),
+ {
+ headers: {
+ 'Cache-Control': 'max-age=86400, s-maxage=86400',
+ 'Access-Control-Allow-Origin': 'https://due.moe'
+ }
+ }
+ );