Skip to content

Commit 9601ab7

Browse files
authored
Update src/content/docs/pages/functions/api-reference.mdx
1 parent 62c4e36 commit 9601ab7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/docs/pages/functions/api-reference.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The following methods can be used to configure your Pages Function.
1414

1515
### `onRequests`
1616

17-
`onRequest` will be called *unless* a more specific `onRequestVerb` method is exported. For example if both `onRequest` and `onRequestGet` are exported, the `onRequest` method will not be called for matching `GET` requests.
17+
`onRequest` will be called unless a more specific `onRequestVerb` method is exported. For example, if both `onRequest` and `onRequestGet` are exported, only `onRequestGet` will be called for `GET` requests.
1818

1919
* <code>onRequest(context[EventContext](#eventcontext))</code> Response | Promise\<Response>
2020
* This function will be invoked on all requests no matter the request method, if no specific request verb method below is exported. It will not be called if `next(context.request)` is called from a `onRquestVerb function`.

0 commit comments

Comments
 (0)