From e3f0281c25d6ead23264a94b0a7b18f10019c185 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Mon, 26 Aug 2024 20:23:17 -0700 Subject: fix: rss.xml endpoint API route handler --- src/pages/rss.xml.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pages/rss.xml.js') diff --git a/src/pages/rss.xml.js b/src/pages/rss.xml.js index 9041051..6fed721 100644 --- a/src/pages/rss.xml.js +++ b/src/pages/rss.xml.js @@ -2,7 +2,7 @@ import rss from '@astrojs/rss'; import { getCollection } from 'astro:content'; import { SITE_TITLE, SITE_DESCRIPTION } from '../consts'; -export async function get(context) { +export async function GET(context) { const posts = await getCollection('blog'); posts.sort((a, b) => new Date(b.data.pubDate).getTime() - new Date(a.data.pubDate).getTime()); return rss({ -- cgit v1.2.3