blob: f8f90c912c684c9f6de3a6ab6d5879d168a13662 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import Parser from "rss-parser";
import { appOriginHeaders } from "$lib/Utility/appOrigin";
export const GET = async ({ setHeaders }) => {
setHeaders({
"Cache-Control": "public, max-age=600, s-maxage=600",
});
return Response.json(
await new Parser().parseString(
await (await fetch("https://www.mangaupdates.com/rss.php")).text(),
),
{
headers: appOriginHeaders(),
},
);
};
|