I am going to cry
Some checks failed
ci / builder (push) Failing after 1m56s

This commit is contained in:
Kebo 2025-04-30 00:26:15 -05:00
parent ba86ac288d
commit ee28bb4c44
2 changed files with 2 additions and 2 deletions

View file

@ -4,5 +4,5 @@ import type { APIContext } from 'astro';
export async function GET(context: APIContext): Promise<Response> { export async function GET(context: APIContext): Promise<Response> {
const feed = await computeFeed(); const feed = await computeFeed();
return new Response(feed.json1()) return new Response(feed.json1(), { headers: { "Content-Type": "application/json" } })
} }

View file

@ -3,5 +3,5 @@ import { computeFeed, injectXSL } from "../../lib/feed.ts";
export async function GET(): Promise<Response> { export async function GET(): Promise<Response> {
const feed = await computeFeed(); const feed = await computeFeed();
return new Response(injectXSL(feed.atom1(), "/feed.xsl")) return new Response(injectXSL(feed.atom1(), "/feed.xsl"), { headers: { "Content-Type": "application/atom+xml" } })
} }