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

11 lines
268 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 feeds = await generateFeeds()
const options = {
headers: {
"Content-Type": "application/json"
}
}
return new Response(feeds.json1, options)
}