Skip to content

Commit 0e21a0f

Browse files
committed
rewording and fix PR comment
1 parent 4fac5dc commit 0e21a0f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/features/event-handler/rest.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,11 @@ Each middleware function receives the following arguments:
173173
* **reqCtx** Request context containing the event, Lambda context, request, and response objects
174174
* **next** A function to pass control to the next middleware in the chain
175175

176-
Middleware can be applied globally on all routes, only on specific routes, or a combination of both.
176+
Middleware can be applied on specific routes, globally on all routes, or a combination of both.
177177

178-
Middleware follow an onion pattern where global middleware executes first in pre-processing,
179-
then route-specific middleware. After the handler executes, the order reverses for
180-
post-processing. When middleware modify the same response properties, the middleware that
178+
Middleware execution follows an onion pattern where global middleware runs first in
179+
pre-processing, then route-specific middleware. After the handler executes, the order reverses
180+
for post-processing. When middleware modify the same response properties, the middleware that
181181
executes last in post-processing wins.
182182

183183
```mermaid
@@ -424,7 +424,7 @@ example, you might want to add additional headers, cookies, or set a custom cont
424424

425425
=== "index.ts"
426426

427-
```ts hl_lines="14-21 28-34"
427+
```ts hl_lines="14-21 28-32"
428428
--8<-- "examples/snippets/event-handler/rest/advanced_fine_grained_responses.ts:6"
429429
```
430430

0 commit comments

Comments
 (0)