Commit f50b6cc
authored
Provide ASGI compatibility through server event
Change server event (listener)
from
```@swagger_blueprint.listener("before_server_start")```
to
```@swagger_blueprint.listener("after_server_start")```
**and**
from
```@swagger_blueprint.listener("after_server_stop")```
to
```@swagger_blueprint.listener("before_server_stop")```
More details at
https://sanic.readthedocs.io/en/latest/sanic/deploying.html#running-via-asgi1 parent 359a39c commit f50b6cc
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
0 commit comments