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