From 6d7bf082e646aa4686a70d396a67afe049222bf6 Mon Sep 17 00:00:00 2001 From: Jennifer Taylor Date: Mon, 6 Sep 2021 02:01:57 +0000 Subject: [PATCH] Force url prefixes for games to match their game constant values. --- bemani/frontend/bishi/endpoints.py | 2 +- bemani/frontend/ddr/endpoints.py | 2 +- bemani/frontend/iidx/endpoints.py | 2 +- bemani/frontend/jubeat/endpoints.py | 2 +- bemani/frontend/museca/endpoints.py | 2 +- bemani/frontend/popn/endpoints.py | 2 +- bemani/frontend/reflec/endpoints.py | 2 +- bemani/frontend/sdvx/endpoints.py | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/bemani/frontend/bishi/endpoints.py b/bemani/frontend/bishi/endpoints.py index 1c4c75b..b8ea29a 100644 --- a/bemani/frontend/bishi/endpoints.py +++ b/bemani/frontend/bishi/endpoints.py @@ -15,7 +15,7 @@ from bemani.frontend.types import g bishi_pages = Blueprint( 'bishi_pages', __name__, - url_prefix='/bishi', + url_prefix=f'/{GameConstants.BISHI_BASHI.value}', template_folder=templates_location, static_folder=static_location, ) diff --git a/bemani/frontend/ddr/endpoints.py b/bemani/frontend/ddr/endpoints.py index 8361ef2..f32ac83 100644 --- a/bemani/frontend/ddr/endpoints.py +++ b/bemani/frontend/ddr/endpoints.py @@ -15,7 +15,7 @@ from bemani.frontend.types import g ddr_pages = Blueprint( 'ddr_pages', __name__, - url_prefix='/ddr', + url_prefix=f'/{GameConstants.DDR.value}', template_folder=templates_location, static_folder=static_location, ) diff --git a/bemani/frontend/iidx/endpoints.py b/bemani/frontend/iidx/endpoints.py index 126f3cc..784e6ac 100644 --- a/bemani/frontend/iidx/endpoints.py +++ b/bemani/frontend/iidx/endpoints.py @@ -14,7 +14,7 @@ from bemani.frontend.types import g iidx_pages = Blueprint( 'iidx_pages', __name__, - url_prefix='/iidx', + url_prefix=f'/{GameConstants.IIDX.value}', template_folder=templates_location, static_folder=static_location, ) diff --git a/bemani/frontend/jubeat/endpoints.py b/bemani/frontend/jubeat/endpoints.py index 0be2396..d152d96 100644 --- a/bemani/frontend/jubeat/endpoints.py +++ b/bemani/frontend/jubeat/endpoints.py @@ -14,7 +14,7 @@ from bemani.frontend.types import g jubeat_pages = Blueprint( 'jubeat_pages', __name__, - url_prefix='/jubeat', + url_prefix=f'/{GameConstants.JUBEAT.value}', template_folder=templates_location, static_folder=static_location, ) diff --git a/bemani/frontend/museca/endpoints.py b/bemani/frontend/museca/endpoints.py index 67fb39d..938441e 100644 --- a/bemani/frontend/museca/endpoints.py +++ b/bemani/frontend/museca/endpoints.py @@ -15,7 +15,7 @@ from bemani.frontend.types import g museca_pages = Blueprint( 'museca_pages', __name__, - url_prefix='/museca', + url_prefix=f'/{GameConstants.MUSECA.value}', template_folder=templates_location, static_folder=static_location, ) diff --git a/bemani/frontend/popn/endpoints.py b/bemani/frontend/popn/endpoints.py index 3bea7a3..c9601bf 100644 --- a/bemani/frontend/popn/endpoints.py +++ b/bemani/frontend/popn/endpoints.py @@ -15,7 +15,7 @@ from bemani.frontend.types import g popn_pages = Blueprint( 'popn_pages', __name__, - url_prefix='/popn', + url_prefix=f'/{GameConstants.POPN_MUSIC.value}', template_folder=templates_location, static_folder=static_location, ) diff --git a/bemani/frontend/reflec/endpoints.py b/bemani/frontend/reflec/endpoints.py index 66b7ab0..99e9fc1 100644 --- a/bemani/frontend/reflec/endpoints.py +++ b/bemani/frontend/reflec/endpoints.py @@ -15,7 +15,7 @@ from bemani.frontend.types import g reflec_pages = Blueprint( 'reflec_pages', __name__, - url_prefix='/reflec', + url_prefix=f'/{GameConstants.REFLEC_BEAT.value}', template_folder=templates_location, static_folder=static_location, ) diff --git a/bemani/frontend/sdvx/endpoints.py b/bemani/frontend/sdvx/endpoints.py index 9cb377f..37bf4d0 100644 --- a/bemani/frontend/sdvx/endpoints.py +++ b/bemani/frontend/sdvx/endpoints.py @@ -15,7 +15,7 @@ from bemani.frontend.types import g sdvx_pages = Blueprint( 'sdvx_pages', __name__, - url_prefix='/sdvx', + url_prefix=f'/{GameConstants.SDVX.value}', template_folder=templates_location, static_folder=static_location, )