UNPKG

ginb

Version:

Write & Share all in GitHub

14 lines (11 loc) 308 B
import { blogInit } from "/src/utils/blogInit"; import { generateRssFeed } from "/src/utils/rssInit"; export async function GET() { const posts = await blogInit(); const feed = generateRssFeed(posts); return new Response(feed, { headers: { "Content-Type": "application/xml", }, }); }