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

11 lines
268 B
TypeScript

import { generateFeeds } from "@/app/lib/rss"
export async function GET() {
const feeds = await generateFeeds()
const options = {
headers: {
"Content-Type": "application/json"
}
}
return new Response(feeds.json1, options)
}