Skip to content

Commit

Permalink
maint: added possible root_url
Browse files Browse the repository at this point in the history
dep: bump siibra req
  • Loading branch information
xgui3783 committed Apr 24, 2024
1 parent ef4e0c3 commit 7e8efb1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion api/server/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@
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"

siibra_api = FastAPI(
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]:
Expand Down
2 changes: 2 additions & 0 deletions api/siibra_api_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion requirements/siibra.txt
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7e8efb1

Please sign in to comment.