From f59ec75bea6f4f828c618a7fddfc538d83b51841 Mon Sep 17 00:00:00 2001 From: mcbloch Date: Thu, 5 Sep 2019 03:25:17 +0200 Subject: [PATCH] forgot to remove the old endpoint --- app/views/general.py | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/app/views/general.py b/app/views/general.py index 1565ab0..3279b17 100644 --- a/app/views/general.py +++ b/app/views/general.py @@ -65,26 +65,3 @@ def favicon(): return send_from_directory(os.path.join(app.root_path, 'static'), 'favicon_orange.ico', mimetype='image/x-icon') - - -@general_bp.route('/routes') -@login_required -def list_routes(): - import urllib - output = [] - for rule in app.url_map.iter_rules(): - options = {} - for arg in rule.arguments: - options[arg] = "[{0}]".format(arg) - print(rule.endpoint) - methods = ','.join(rule.methods) - url = url_for(rule.endpoint, **options) - line = urllib.parse.unquote("{:50s} {:20s} {}".format( - rule.endpoint, methods, url)) - output.append(line) - - string = '' - for line in sorted(output): - string += line + "
" - - return string