Skip to content

Commit

Permalink
feat(api): create endpoint to get atom feed
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusfg7 committed Jun 15, 2023
1 parent 5c7dfaf commit 69d0665
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/app/(blog)/feed/route.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { generateFeed } from './generate-feed'

export async function GET() {
const feed = generateFeed()

return new Response(feed, {
headers: {
'Content-Type': 'application/xml'
}
})
}

0 comments on commit 69d0665

Please sign in to comment.