From: Karl O. Pinc Date: Sun, 6 Dec 2020 23:19:58 +0000 (-0600) Subject: PGWUI_Server no longer configure common in a route_prefix context X-Git-Url: https://papio.biology.duke.edu/gitweb/?a=commitdiff_plain;h=6a5ebe087e6dcf4f43d6f80f239d62a79de27179;p=pgwui_common PGWUI_Server no longer configure common in a route_prefix context --- diff --git a/src/pgwui_common/pgwui_common.py b/src/pgwui_common/pgwui_common.py index 45e9587..8ed3ec0 100644 --- a/src/pgwui_common/pgwui_common.py +++ b/src/pgwui_common/pgwui_common.py @@ -37,8 +37,7 @@ def configure_page(config, pgwui_settings, page_name): type = page_settings['type'] if type == 'file': route_name = f'pgwui_common.{page_name}' - with config.route_prefix_context(None): - config.add_route(route_name, page_settings['url_path']) + config.add_route(route_name, page_settings['url_path']) config.add_view(pgwui_common.views.page_views.PageViewer, attr=page_name, route_name=route_name)