Skip to content

Commit

Permalink
Fix warning about lower case HTTP method (#464)
Browse files Browse the repository at this point in the history
Fixes this warning from the CI build:

```
 λ src/pages/rss.xml.ts
06:36:13 AM [astro] Lower case endpoint names are deprecated and will not be supported in Astro 4.0. Rename the endpoint get to GET.
  └─ /rss.xml (+14ms)
```
  • Loading branch information
Acconut authored Jul 30, 2024
1 parent dc0045a commit a391445
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/rss.xml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import rss from '@astrojs/rss'
import { getCollection, getEntry } from 'astro:content'
import type { APIRoute } from 'astro'

export const get: APIRoute = async () => {
export const GET: APIRoute = async () => {
const blog = await getCollection('blog')
return rss({
title: 'tus.io',
Expand Down

0 comments on commit a391445

Please sign in to comment.