diff --git a/App/app.py b/App/app.py index 0930f53..fffda9b 100644 --- a/App/app.py +++ b/App/app.py @@ -13,9 +13,7 @@ app.register_blueprint(auth_bp, url_prefix='/auth') @app.route('/') def index(): - with open(path.join(path.dirname(__file__), 'menu.json')) as f: - urls = json.load(f) - return render_template('main_menu.html', menu=urls, ses=session) + return render_template('main_menu.html', ses=session) @app.route('/logout') @check_auth diff --git a/App/menu.json b/App/menu.json deleted file mode 100644 index 1af7457..0000000 --- a/App/menu.json +++ /dev/null @@ -1,3 +0,0 @@ -[ - {"name": "Меню запросов", "url": "requests_bp.sklad_zapros"} -] \ No newline at end of file diff --git a/App/templates/main_menu.html b/App/templates/main_menu.html index a7df8c7..d5d811e 100644 --- a/App/templates/main_menu.html +++ b/App/templates/main_menu.html @@ -12,9 +12,7 @@ {% else %} Авторизация {% endif %} - {% for point in menu %} - {{ point['name'] }} - {% endfor %} + Запросы \ No newline at end of file