diff options
Diffstat (limited to '.changeset/twelve-coats-rush.md')
-rw-r--r-- | .changeset/twelve-coats-rush.md | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/.changeset/twelve-coats-rush.md b/.changeset/twelve-coats-rush.md deleted file mode 100644 index 29dd0f689..000000000 --- a/.changeset/twelve-coats-rush.md +++ /dev/null @@ -1,35 +0,0 @@ ---- -'astro': major ---- - -Lowercase names for endpoint functions are now deprecated. - -Rename functions to their uppercase equivalent: - -```diff -- export function get() { -+ export function GET() { - return new Response(JSON.stringify({ "title": "Bob's blog" })); -} - -- export function post() { -+ export function POST() { - return new Response(JSON.stringify({ "title": "Bob's blog" })); -} - -- export function put() { -+ export function PUT() { - return new Response(JSON.stringify({ "title": "Bob's blog" })); -} - -- export function all() { -+ export function ALL() { - return new Response(JSON.stringify({ "title": "Bob's blog" })); -} - -// you can use the whole word "DELETE" -- export function del() { -+ export function DELETE() { - return new Response(JSON.stringify({ "title": "Bob's blog" })); -} -``` |