Uppercase endpoint examples in adapter READMEs (#8346)

This commit is contained in:
Chris Swithinbank 2023-09-01 17:11:55 +02:00 committed by GitHub
parent 1b9de31737
commit b74dacdb6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 2 deletions

View file

@ -0,0 +1,6 @@
---
'@astrojs/cloudflare': patch
'@astrojs/netlify': patch
---
Update README

View file

@ -99,7 +99,7 @@ From an endpoint:
```js
// src/pages/api/someFile.js
export function get(context) {
export function GET(context) {
const runtime = context.locals.runtime;
return new Response('Some body');

View file

@ -243,7 +243,7 @@ We check for common mime types for audio, image, and video files. To include spe
import fs from 'node:fs';
export function get() {
export function GET() {
const buffer = fs.readFileSync('../image.jpg');
// Return the buffer directly, @astrojs/netlify will base64 encode the body