blob: 5dd2aaade6073e8069082464d898a01ce8866286 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
export const GET = async ({ setHeaders }) => {
setHeaders({
'Cache-Control': 'public, max-age=600, s-maxage=600'
});
return Response.json(
await (
await fetch('https://www.wlnupdates.com/api', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Access-Control-Allow-Origin': 'https://due.moe'
},
body: JSON.stringify({
mode: 'get-releases'
})
})
).json()
);
};
|