diff options
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({ |
