blob: 862ef5e4b8e743ed67164e394e0133e4c37903b9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
export const GET = async ({ url }) => {
return Response.json(
await (
await fetch(
`https://api.mangadex.org/manga/${url.searchParams.get(
'id'
)}/feed?order[chapter]=desc&translatedLanguage[]=en&limit=1&contentRating[]=safe&contentRating[]=suggestive&contentRating[]=erotica&contentRating[]=pornographic`
)
).json()
);
};
|