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

11 lines
266 B
TypeScript
Raw Normal View History

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