You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge branch 'develop' into docs/event-handler-graphql-code-split
* develop:
fix(ci): accept core arg in label related issue workflow
docs(core): match code snippet name with filename (aws-powertools#1286)
fix: sight, yes a whitespace character breaks the build
fix: mathc the name of the cdk synth from the build phase
fix: download artefact into the layer dir
@@ -139,13 +139,13 @@ You can also combine nested paths with greedy regex to catch in between routes.
139
139
140
140
You can use named decorators to specify the HTTP method that should be handled in your functions. That is, `app.<http_method>`, where the HTTP method could be `get`, `post`, `put`, `patch`, `delete`, and `options`.
@@ -225,13 +225,13 @@ When using [Custom Domain API Mappings feature](https://docs.aws.amazon.com/apig
225
225
226
226
To address this API Gateway behavior, we use `strip_prefixes` parameter to account for these prefixes that are now injected into the path regardless of which type of API Gateway you're using.
@@ -290,13 +290,13 @@ For convenience, these are the default values when using `CORSConfig` to enable
290
290
291
291
You can use the `Response` class to have full control over the response, for example you might want to add additional headers or set a custom Content-type.
@@ -387,17 +387,17 @@ You can instruct API Gateway handler to use a custom serializer to best suit you
387
387
388
388
As you grow the number of routes a given Lambda function should handle, it is natural to split routes into separate files to ease maintenance - That's where the `Router` feature is useful.
389
389
390
-
Let's assume you have `app.py` as your Lambda function entrypoint and routes in `todos.py`, this is how you'd use the `Router` feature.
390
+
Let's assume you have `app.py` as your Lambda function entrypoint and routes in `split_route_module.py`, this is how you'd use the `Router` feature.
391
391
392
-
=== "todos.py"
392
+
=== "split_route_module.py"
393
393
394
394
We import **Router** instead of **APIGatewayRestResolver**; syntax wise is exactly the same.
0 commit comments