🎨 Single line initialization is more readable
This commit is contained in:
parent
f579972466
commit
0deb5706f8
1 changed files with 1 additions and 2 deletions
|
|
@ -49,8 +49,7 @@ def serve(root: str = ".", host="127.0.0.1", port=8000):
|
|||
"""
|
||||
project_path = Path(root)
|
||||
project = runtime.Project(project_path)
|
||||
app_instance = project.app()
|
||||
app_instance = project.configure_app(app_instance)
|
||||
app_instance = project.configure_app(project.app())
|
||||
uvicorn.run(app_instance, host=host, port=int(port), reload=False, log_config=None)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue