update
This commit is contained in:
@@ -17,6 +17,8 @@ def create_app() -> FastAPI:
|
||||
"""Create and configure the FastAPI application."""
|
||||
|
||||
settings = get_settings()
|
||||
if settings.app_mode != "platform":
|
||||
raise RuntimeError("APP_MODE=work-assistant requires app.modules.work_assistant.application:app")
|
||||
app = FastAPI(
|
||||
title=settings.app_name,
|
||||
debug=settings.debug,
|
||||
|
||||
Reference in New Issue
Block a user