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

11 lines
270 B
TypeScript
Raw Normal View History

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