diff options
| author | Pinapelz <yukais@pinapelz.com> | 2024-08-26 20:23:17 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2024-08-26 23:56:32 -0700 |
| commit | e3f0281c25d6ead23264a94b0a7b18f10019c185 (patch) | |
| tree | 085f03b4c10dbaae67f9c9f15feb1325394ac5f1 /src/pages/rss.xml.js | |
| parent | bf0259562427fa415b522f5443931c99c6c9d288 (diff) | |
fix: rss.xml endpoint API route handler
Diffstat (limited to 'src/pages/rss.xml.js')
| -rw-r--r-- | src/pages/rss.xml.js | 2 |
1 files changed, 1 insertions, 1 deletions
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({ |
