diff options
| author | Fuwn <[email protected]> | 2024-10-09 00:41:20 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-10-09 00:41:43 -0700 |
| commit | 998b63a35256ac985a5a2714dd1ca451af4dfd8a (patch) | |
| tree | 50796121a9d5ab0330fdc5d7e098bda2860d9726 /src/routes/api/subsplease/+server.ts | |
| parent | feat(graphql): add badgeCount field (diff) | |
| download | due.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.ts | 30 |
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' + } + } + ); |