File tree 1 file changed +3
-16
lines changed
1 file changed +3
-16
lines changed Original file line number Diff line number Diff line change 22
22
Options = starlette .Options
23
23
"""Alias for :class:`idom.server.starlette.Options`"""
24
24
25
-
26
- def configure (
27
- app : FastAPI ,
28
- constructor : RootComponentConstructor ,
29
- options : starlette .Options | None = None ,
30
- ) -> None :
31
- """Prepare a :class:`FastAPI` server to serve the given component
32
-
33
- Parameters:
34
- app: An application instance
35
- constructor: A component constructor
36
- config: Options for configuring server behavior
37
- """
38
- options = starlette ._setup_options (options )
39
- starlette ._setup_common_routes (options , app )
40
- starlette ._setup_single_view_dispatcher_route (options .url_prefix , app , constructor )
25
+ configure = starlette .configure
26
+ """Alias for :class:`idom.server.starlette.configure`"""
41
27
42
28
43
29
def create_development_app () -> FastAPI :
30
+ """Create a development ``FastAPI`` application instance."""
44
31
return FastAPI (debug = IDOM_DEBUG_MODE .current )
You can’t perform that action at this time.
0 commit comments