diff --git a/router/main.py b/router/main.py index 56934b6..ca2a58b 100644 --- a/router/main.py +++ b/router/main.py @@ -76,10 +76,14 @@ def create_app(router_secret: Optional[str] = None) -> FastAPI: return app +# Create top-level app instance for uvicorn +from config import ROUTER_SECRET +app = create_app(router_secret=ROUTER_SECRET) + + if __name__ == "__main__": - from config import PORT, ROUTER_SECRET + from config import PORT import uvicorn - app = create_app(router_secret=ROUTER_SECRET) uvicorn.run( "router.main:app", host="0.0.0.0",