Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
atarashansky committed Feb 21, 2024
1 parent 70f2546 commit 8f0cfc4
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions server/app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,19 +185,12 @@ def __init__(self, app_config: AppConfig):
for dataroot_dict in app_config.server__multi_dataset__dataroots.values():
url_dataroot = dataroot_dict["base_url"]
self.app.add_url_rule(
f"/{url_dataroot}/<string:dataset>/",
f"/{url_dataroot}/<path:dataset>/",
f"dataset_index_{url_dataroot}/",
lambda dataset, url_dataroot=url_dataroot: dataset_index(url_dataroot, dataset),
methods=["GET"],
)

self.app.add_url_rule(
f"/{url_dataroot}/cellguide-cxgs/<path:dataset>/",
f"dataset_index_{url_dataroot}_cellguide_cxgs/",
lambda dataset, url_dataroot=url_dataroot: dataset_index(url_dataroot, dataset),
methods=["GET"],
)

self.app.app_config = app_config

@self.app.before_request
Expand Down

0 comments on commit 8f0cfc4

Please sign in to comment.