Skip to content

Commit

Permalink
Fix catalogs url only returns subset of subcatalogs
Browse files Browse the repository at this point in the history
There was a missing prefix on the logic that would mount subcatalogs to the main application's router. This would case that subcatalogs endpoints for /datasetsm /catalogs, etc. to return in place of the root catalog.
  • Loading branch information
ptomasula committed Aug 28, 2024
1 parent f68df03 commit 34758e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/catalog_to_xpublish/server_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ def create_app(
router = app_inputs.catalog_implementation.catalog_router(
catalog_endpoint_obj=cat_end,
)
app.include_router(router=router.router)
# add prefix?
app.include_router(router=router.router, prefix=cat_prefix)
logger.info(
f'Returning successfully created server application!',
)
Expand Down

0 comments on commit 34758e5

Please sign in to comment.