From 61b4c9e57966c0da380662a00bf0603fe5501e52 Mon Sep 17 00:00:00 2001 From: Terrtia Date: Thu, 20 Sep 2018 10:56:29 +0200 Subject: [PATCH] chg: [Flask] add prefix in config to flask routes --- var/www/modules/hashDecoded/Flask_hashDecoded.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/var/www/modules/hashDecoded/Flask_hashDecoded.py b/var/www/modules/hashDecoded/Flask_hashDecoded.py index 7d8981c9..6819ff09 100644 --- a/var/www/modules/hashDecoded/Flask_hashDecoded.py +++ b/var/www/modules/hashDecoded/Flask_hashDecoded.py @@ -21,6 +21,7 @@ import Flask_config app = Flask_config.app cfg = Flask_config.cfg +baseUrl = Flask_config.baseUrl r_serv_metadata = Flask_config.r_serv_metadata vt_enabled = Flask_config.vt_enabled vt_auth = Flask_config.vt_auth @@ -628,4 +629,4 @@ def update_vt_result(): return jsonify() # ========= REGISTRATION ========= -app.register_blueprint(hashDecoded) +app.register_blueprint(hashDecoded, url_prefix=baseUrl)