mirror of
https://github.com/fabrice404/olympics-calendar.git
synced 2026-02-14 12:19:04 +00:00
This commit is contained in:
@ -16,7 +16,7 @@ export async function GET(
|
||||
const content = await fs.readFile(filePath, "utf-8");
|
||||
if (!content) throw new Error()
|
||||
|
||||
return new NextResponse(content, { status: 200 });
|
||||
return new NextResponse(content, { status: 200, headers: { "Content-Type": "text/calendar" } });
|
||||
} catch (ex) {
|
||||
console.log(ex);
|
||||
return new NextResponse("File not found", { status: 404 });
|
||||
|
||||
Reference in New Issue
Block a user