mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-17 11:55:31 -04:00
Migrate to app router (#2254)
This commit is contained in:
11
app/feed.atom/route.ts
Normal file
11
app/feed.atom/route.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { buildFeed } from "../../lib/helpers/build-feed";
|
||||
|
||||
export const dynamic = "force-static";
|
||||
|
||||
export const GET = async () => {
|
||||
return new Response(await buildFeed({ type: "atom" }), {
|
||||
headers: {
|
||||
"content-type": "application/atom+xml; charset=utf-8",
|
||||
},
|
||||
});
|
||||
};
|
Reference in New Issue
Block a user