diff --git a/api/server/api.py b/api/server/api.py index 85408de..ad2be31 100644 --- a/api/server/api.py +++ b/api/server/api.py @@ -24,7 +24,7 @@ from .code_snippet import get_sourcecode, add_sample_code from ..common import general_logger, access_logger, NotFound, SapiBaseException -from ..siibra_api_config import GIT_HASH +from ..siibra_api_config import GIT_HASH, FASTAPI_ROOT_PATH siibra_version_header = "x-siibra-api-version" @@ -32,6 +32,7 @@ title="siibra api", description="This is the REST api for siibra tools", version=__version__, + root_path=FASTAPI_ROOT_PATH or "" ) for prefix_router in [*core_prefixed_routers, *volume_prefixed_routers, *compound_prefixed_routers]: diff --git a/api/siibra_api_config.py b/api/siibra_api_config.py index aa6437e..fbf8c33 100644 --- a/api/siibra_api_config.py +++ b/api/siibra_api_config.py @@ -64,6 +64,8 @@ def get_config_dir_short_hash(path_to_config: str): MONITOR_FIRSTLVL_DIR = os.getenv("MONITOR_FIRSTLVL_DIR") or os.getenv("_MONITOR_FIRSTLVL_DIR") """MONITOR_FIRSTLVL_DIR""" +FASTAPI_ROOT_PATH = os.getenv("FASTAPI_ROOT_PATH") + queues = [ "core", "features", diff --git a/requirements/siibra.txt b/requirements/siibra.txt index 668abba..ddc92fe 100644 --- a/requirements/siibra.txt +++ b/requirements/siibra.txt @@ -1,3 +1,3 @@ # siibra==1.0a5 -git+https://github.com/FZJ-INM1-BDA/siibra-python.git@5fda08cb19f856c00420f4a14c3cb89b085925fe +git+https://github.com/FZJ-INM1-BDA/siibra-python.git@586c694ecde9d91ab6a8c3eb7255425d05f43013 plotly