Debian Codegraph @

www/src/pages/rss.xml.js

raw symbols SCIP
1 /**
2 * /rss.xml — RSS 2.0 feed of essays + interviews.
3 *
4 * New endpoint (the old Zola site only emitted Atom). Both feeds are built
5 * from the same source via lib/feed.js → drift is impossible.
6 */
7
8 import { buildFeed } from '../lib/feed';
9
10 /** @type {import('astro').APIRoute} */
11 export const GET = async (context) => {
12 const feed = await buildFeed(context.site);
13 return new Response(feed.rss2(), {
14 status: 200,
15 headers: { 'Content-Type': 'application/rss+xml; charset=utf-8' },
16 });
17 };