diff --git a/src/hayhooks/server/app.py b/src/hayhooks/server/app.py index 1574297..b47734b 100644 --- a/src/hayhooks/server/app.py +++ b/src/hayhooks/server/app.py @@ -9,7 +9,10 @@ def create_app(): - app = FastAPI() + if root_path := os.environ.get("HAYHOOKS_ROOT_PATH"): + app = FastAPI(root_path=root_path) + else: + app = FastAPI() # Deploy all pipelines in the pipelines directory pipelines_dir = os.environ.get("HAYHOOKS_PIPELINES_DIR")