diff options
| author | 2023-09-04 23:10:39 +0800 | |
|---|---|---|
| committer | 2023-09-04 23:10:39 +0800 | |
| commit | d92ab065445b2ba904f01dae2c320d70af1e1f72 (patch) | |
| tree | 38e17561c9905102d0c80c3908029754b1916e10 /examples/blog/src/pages/rss.xml.js | |
| parent | 77922ae5db5f40b8e228337b56af44d7c98bafbc (diff) | |
| download | astro-d92ab065445b2ba904f01dae2c320d70af1e1f72.tar.gz astro-d92ab065445b2ba904f01dae2c320d70af1e1f72.tar.zst astro-d92ab065445b2ba904f01dae2c320d70af1e1f72.zip | |
Update examples & uppercase endpoints & fix response (#8391)
Co-authored-by: liruifeng <liruifeng@troila.com>
Diffstat (limited to 'examples/blog/src/pages/rss.xml.js')
| -rw-r--r-- | examples/blog/src/pages/rss.xml.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/blog/src/pages/rss.xml.js b/examples/blog/src/pages/rss.xml.js index 7d054b92a..9ff9801e0 100644 --- a/examples/blog/src/pages/rss.xml.js +++ b/examples/blog/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'); return rss({ title: SITE_TITLE, |
