blob: 6ef2d832caef913c4b654f25ff17da5ac84bd4e0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import { appOriginHeaders } from "$lib/Utility/appOrigin";
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: appOriginHeaders({
"Cache-Control": "max-age=86400, s-maxage=86400",
}),
},
);
|