(name: str)
| 42 | |
| 43 | |
| 44 | def make_app(name: str): |
| 45 | app = Sanic(name) |
| 46 | |
| 47 | app.static("/docs", str(DOCS_BUILD_DIR)) |
| 48 | |
| 49 | @app.route("/") |
| 50 | async def forward_to_index(_): |
| 51 | return response.redirect("/docs/index.html") |
| 52 | |
| 53 | configure( |
| 54 | app, |
| 55 | Example, |
| 56 | Options(url_prefix=REACTPY_MODEL_SERVER_URL_PREFIX), |
| 57 | ) |
| 58 | |
| 59 | return app |
no test coverage detected