Uppercase endpoint examples in adapter READMEs (#8346)
This commit is contained in:
parent
1b9de31737
commit
b74dacdb6a
3 changed files with 8 additions and 2 deletions
6
.changeset/quiet-sheep-refuse.md
Normal file
6
.changeset/quiet-sheep-refuse.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
'@astrojs/cloudflare': patch
|
||||
'@astrojs/netlify': patch
|
||||
---
|
||||
|
||||
Update README
|
|
@ -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');
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue