diff --git a/src/vosiav2/config.py b/src/vosiav2/config.py index a4ba9d9..54c27b6 100644 --- a/src/vosiav2/config.py +++ b/src/vosiav2/config.py @@ -21,7 +21,7 @@ class Config(BaseSettings): name: str = Field("vo-siav2", title="Name of application") """Name of application.""" - path_prefix: str = Field("/api/siav2", title="URL prefix for application") + path_prefix: str = Field("/api/images", title="URL prefix for application") """URL prefix for application.""" profile: Profile = Field( diff --git a/tests/handlers/external/capabilities_test.py b/tests/handlers/external/capabilities_test.py index cb589b4..85c7768 100644 --- a/tests/handlers/external/capabilities_test.py +++ b/tests/handlers/external/capabilities_test.py @@ -25,9 +25,11 @@ async def test_capabilities(client: AsyncClient) -> None: templates_dir = Jinja2Templates(template_dir) context = { - "capabilities_url": "https://example.com/api/siav2/capabilities", - "availability_url": "https://example.com/api/siav2/availability", - "query_url": "https://example.com/api/siav2/query", + "capabilities_url": f"https://example.com" + f"{config.path_prefix}/capabilities", + "availability_url": f"https://example.com" + f"{config.path_prefix}/availability", + "query_url": f"https://example.com{config.path_prefix}/query", } r = await client.get(f"{config.path_prefix}/capabilities")