@@ -198,7 +198,7 @@ Each dynamic route you set must be part of your function signature. This allows
198
198
199
199
=== "dynamic_routes.py"
200
200
201
- ```python hl_lines="14 16 "
201
+ ```python hl_lines="16 18 "
202
202
--8<-- "examples/event_handler_rest/src/dynamic_routes.py"
203
203
```
204
204
@@ -640,7 +640,7 @@ matches one of the allowed values.
640
640
641
641
=== "setting_cors.py"
642
642
643
- ```python hl_lines="5 11-12 34 "
643
+ ```python hl_lines="7 14-15 38 "
644
644
--8<-- "examples/event_handler_rest/src/setting_cors.py"
645
645
```
646
646
@@ -652,7 +652,7 @@ matches one of the allowed values.
652
652
653
653
=== "setting_cors_extra_origins.py"
654
654
655
- ```python hl_lines="5 11-12 34 "
655
+ ```python hl_lines="7 14 15 38 "
656
656
--8<-- "examples/event_handler_rest/src/setting_cors_extra_origins.py"
657
657
```
658
658
@@ -943,7 +943,7 @@ You can compress with gzip and base64 encode your responses via `compress` param
943
943
944
944
=== "compressing_responses_using_route.py"
945
945
946
- ```python hl_lines="17 27 "
946
+ ```python hl_lines="19 29 "
947
947
--8<-- "examples/event_handler_rest/src/compressing_responses_using_route.py"
948
948
```
949
949
@@ -1154,7 +1154,7 @@ Let's assume you have `split_route.py` as your Lambda function entrypoint and ro
1154
1154
!!! info
1155
1155
This means all methods, including [middleware](#middleware) will work as usual.
1156
1156
1157
- ```python hl_lines="5 13 16 25 28 "
1157
+ ```python hl_lines="7 10 15 18 27 30 "
1158
1158
--8<-- "examples/event_handler_rest/src/split_route_module.py"
1159
1159
```
1160
1160
@@ -1186,7 +1186,7 @@ When necessary, you can set a prefix when including a router object. This means
1186
1186
1187
1187
=== "split_route_prefix_module.py"
1188
1188
1189
- ```python hl_lines="13 25 "
1189
+ ```python hl_lines="14 26 "
1190
1190
--8<-- "examples/event_handler_rest/src/split_route_prefix_module.py"
1191
1191
```
1192
1192
0 commit comments