Skip to content

Commit b74dacd

Browse files
authored
Uppercase endpoint examples in adapter READMEs (#8346)
1 parent 1b9de31 commit b74dacd

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

.changeset/quiet-sheep-refuse.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@astrojs/cloudflare': patch
3+
'@astrojs/netlify': patch
4+
---
5+
6+
Update README

packages/integrations/cloudflare/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ From an endpoint:
9999

100100
```js
101101
// src/pages/api/someFile.js
102-
export function get(context) {
102+
export function GET(context) {
103103
const runtime = context.locals.runtime;
104104

105105
return new Response('Some body');

packages/integrations/netlify/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ We check for common mime types for audio, image, and video files. To include spe
243243

244244
import fs from 'node:fs';
245245

246-
export function get() {
246+
export function GET() {
247247
const buffer = fs.readFileSync('../image.jpg');
248248

249249
// Return the buffer directly, @astrojs/netlify will base64 encode the body

0 commit comments

Comments
 (0)