diff --git a/server/app/app.py b/server/app/app.py index dc2bfe1c..293da8d2 100644 --- a/server/app/app.py +++ b/server/app/app.py @@ -116,7 +116,7 @@ def dataroot_test_index(): data += "" data += "" @@ -225,12 +225,12 @@ class Server: # NOTE: These routes only allow the dataset to be in the directory # of the dataroot, and not a subdirectory. We may want to change # the route format at some point - bp_api = Blueprint("api_dataset", __name__, url_prefix="/" + api_version) + bp_api = Blueprint("api_dataset", __name__, url_prefix="/d/" + api_version) resources = get_api_resources(bp_api) self.app.register_blueprint(resources.blueprint) - self.app.add_url_rule("//", "dataset_index", dataset_index, methods=["GET"]) + self.app.add_url_rule("/d//", "dataset_index", dataset_index, methods=["GET"]) self.app.add_url_rule( - "//static/", "static_redirect", static_redirect, methods=["GET"] + "/d//static/", "static_redirect", static_redirect, methods=["GET"] ) self.app.matrix_data_cache_manager = matrix_data_cache_manager