fp/packages/next/app/feed/rss.xml/route.ts

11 lines
263 B
TypeScript
Raw Normal View History

2024-01-20 16:16:14 +00:00
import { generateFeeds } from "@/lib/rss"
export async function GET() {
const { rss2 } = await generateFeeds()
const options = {
headers: {
"Content-Type": "application/rss+xml"
}
}
return new Response(rss2, options)
}