Update README.md (#19103)

Correct the example endpoint to `/oak-server/greet`
This commit is contained in:
wave-light authored and GitHub committed 2023-11-26 22:08:36 -05:00
1 parent 36844a007f
commit 81e146f26b
1 file changed
+2 -2
@@ -8,10 +8,10 @@ This example shows how you can write functions using Oak server middleware (http
supabase functions serve --no-verify-jwt
```
Use cURL or Postman to make a POST request to http://localhost:54321/functions/v1/oak-server.
Use cURL or Postman to make a POST request to http://localhost:54321/functions/v1/oak-server/greet.
```
curl --location --request POST 'http://localhost:54321/functions/v1/oak-server' \
curl --location --request POST 'http://localhost:54321/functions/v1/oak-server/greet' \
--header 'Authorization: Bearer YOUR_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{ "name": "John Doe" }'