MCPcopy Index your code
hub / github.com/reactive-python/reactpy / make_app

Function make_app

docs/docs_app/app.py:44–59  ·  view source on GitHub ↗
(name: str)

Source from the content-addressed store, hash-verified

42
43
44def 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

Callers 2

wrap_builderFunction · 0.90
prod.pyFile · 0.90

Calls 2

configureFunction · 0.90
OptionsClass · 0.90

Tested by

no test coverage detected