aboutsummaryrefslogtreecommitdiff
path: root/src/routes/api/birthdays/secondary/+server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/api/birthdays/secondary/+server.ts')
-rw-r--r--src/routes/api/birthdays/secondary/+server.ts46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/routes/api/birthdays/secondary/+server.ts b/src/routes/api/birthdays/secondary/+server.ts
index ae9178a0..f28e2e71 100644
--- a/src/routes/api/birthdays/secondary/+server.ts
+++ b/src/routes/api/birthdays/secondary/+server.ts
@@ -1,25 +1,25 @@
export const GET = async ({ url }: { url: URL }) => {
- return Response.json(
- await (
- await fetch(
- `https://www.animecharactersdatabase.com/api_series_characters.php?month=${url.searchParams.get(
- 'month'
- )}&day=${url.searchParams.get('day')}`,
- {
- headers: {
- Accept: 'application/json',
- 'Content-Type': 'application/json',
- 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0',
- 'Cache-Control': 'max-age=10, s-maxage=10'
- }
- }
- )
- ).json(),
- {
- headers: {
- 'Cache-Control': 'max-age=10800, s-maxage=10800',
- 'Access-Control-Allow-Origin': 'https://due.moe'
- }
- }
- );
+ return Response.json(
+ await (
+ await fetch(
+ `https://www.animecharactersdatabase.com/api_series_characters.php?month=${url.searchParams.get(
+ 'month'
+ )}&day=${url.searchParams.get('day')}`,
+ {
+ headers: {
+ Accept: 'application/json',
+ 'Content-Type': 'application/json',
+ 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0',
+ 'Cache-Control': 'max-age=10, s-maxage=10'
+ }
+ }
+ )
+ ).json(),
+ {
+ headers: {
+ 'Cache-Control': 'max-age=10800, s-maxage=10800',
+ 'Access-Control-Allow-Origin': 'https://due.moe'
+ }
+ }
+ );
};