import parseScheduleHtml from 'holo-schedule'; export const GET = async ({ url }) => Response.json( parseScheduleHtml( await ( await fetch('https://schedule.hololive.tv', { headers: { Cookie: `timezone=${url.searchParams.get('timezone') || 'Asia/Tokyo'}` } }) ).text() ), { headers: { 'Access-Control-Allow-Origin': 'https://due.moe', 'Cache-Control': 'public, max-age=300, s-maxage=300' } } );