Skip to content

Commit

Permalink
Change prefix to /api/images
Browse files Browse the repository at this point in the history
  • Loading branch information
stvoutsin committed Sep 24, 2024
1 parent c743755 commit 05df414
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/vosiav2/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
8 changes: 5 additions & 3 deletions tests/handlers/external/capabilities_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 05df414

Please sign in to comment.