Skip to content

Commit 1cdeac4

Browse files
committed
docs: fix wrong code snippet in README
1 parent 68f1a2a commit 1cdeac4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export async function netlifyCommonEngineHandler(request: Request, context: any)
123123
// Example API endpoints can be defined here.
124124
// Uncomment and define endpoints as necessary.
125125
// const pathname = new URL(request.url).pathname;
126-
// if (pathname = '/api/hello') {
126+
// if (pathname === '/api/hello') {
127127
// return Response.json({ message: 'Hello from the API' });
128128
// }
129129

@@ -145,7 +145,7 @@ export async function netlifyAppEngineHandler(request: Request): Promise<Respons
145145
// Example API endpoints can be defined here.
146146
// Uncomment and define endpoints as necessary.
147147
// const pathname = new URL(request.url).pathname;
148-
// if (pathname = '/api/hello') {
148+
// if (pathname === '/api/hello') {
149149
// return Response.json({ message: 'Hello from the API' });
150150
// }
151151

0 commit comments

Comments
 (0)