Skip to content

Commit 7793377

Browse files
Removing docs reference to js and css
1 parent 64377fe commit 7793377

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

docs/core/event_handler/api_gateway.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ There are some important **caveats** that you should know before enabling it:
484484
| ------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
485485
| Swagger UI is **publicly accessible by default** | When using `enable_swagger` method, you can [protect sensitive API endpoints by implementing a custom middleware](#customizing-swagger-ui) using your preferred authorization mechanism. |
486486
| **No micro-functions support** yet | Swagger UI is enabled on a per resolver instance which will limit its accuracy here. |
487-
| You need to expose **new routes** | You'll need to expose the following paths to Lambda: `/swagger`, `/swagger.css`, `/swagger.js`; ignore if you're routing all paths already. |
487+
| You need to expose **new route** | You'll need to expose the following paths to Lambda: `/swagger`; ignore if you're routing this path already. |
488488

489489
```python hl_lines="12-13" title="enabling_swagger.py"
490490
--8<-- "examples/event_handler_rest/src/enabling_swagger.py"

examples/event_handler_rest/sam/template.yaml

-10
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,3 @@ Resources:
6767
# Properties:
6868
# Path: /swagger
6969
# Method: GET
70-
# SwaggerUICSS:
71-
# Type: Api
72-
# Properties:
73-
# Path: /swagger.css
74-
# Method: GET
75-
# SwaggerUIJS:
76-
# Type: Api
77-
# Properties:
78-
# Path: /swagger.js
79-
# Method: GET

0 commit comments

Comments
 (0)