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
Copy file name to clipboardExpand all lines: docs/core/event_handler/api_gateway.md
+30-39
Original file line number
Diff line number
Diff line change
@@ -1027,43 +1027,42 @@ When necessary, you can set a prefix when including a router object. This means
1027
1027
1028
1028
#### Sample layout
1029
1029
1030
-
!!! info "We use ALB to demonstrate that the UX remains the same"
1031
-
1032
-
This sample project contains an Users function with two distinct set of routes, `/users` and `/health`. The layout optimizes for code sharing, no custom build tooling, and it uses [Lambda Layers](../../index.md#lambda-layer) to install Lambda Powertools.
1030
+
This sample project contains a Users function with two distinct set of routes, `/users` and `/health`. The layout optimizes for code sharing, no custom build tooling, and it uses [Lambda Layers](../../index.md#lambda-layer) to install Lambda Powertools.
1033
1031
1034
1032
=== "Project layout"
1035
1033
1036
1034
1037
-
```python hl_lines="6 8 10-13"
1035
+
```python hl_lines="1 8 10 12-15"
1038
1036
.
1039
-
├── Pipfile # project app & dev dependencies; poetry, pipenv, etc.
1037
+
├── Pipfile # project app & dev dependencies; poetry, pipenv, etc.
@@ -1180,16 +1181,6 @@ This sample project contains an Users function with two distinct set of routes,
1180
1181
assert ret["body"] == expected
1181
1182
```
1182
1183
1183
-
=== ".env"
1184
-
1185
-
> Note: It is not needed for PyCharm (select folder as source).
1186
-
1187
-
This is necessary for Visual Studio Code, so integrated tooling works without failing import.
1188
-
1189
-
```bash
1190
-
PYTHONPATH="users:${PYTHONPATH}"
1191
-
```
1192
-
1193
1184
### Considerations
1194
1185
1195
1186
This utility is optimized for fast startup, minimal feature set, and to quickly on-board customers familiar with frameworks like Flask — it's not meant to be a fully fledged framework.
0 commit comments