From e2f47432c43588f8199157c9e068415b76375730 Mon Sep 17 00:00:00 2001 From: piair Date: Mon, 21 Aug 2023 19:43:15 +0200 Subject: [PATCH] a --- Flask/app.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Flask/app.py b/Flask/app.py index 482fb7d..84755ea 100644 --- a/Flask/app.py +++ b/Flask/app.py @@ -406,11 +406,10 @@ def logs(): - +@login_required @app.route('/download/', methods=['GET', 'POST']) def download(filename): - print(filename) - return send_from_directory(directory='/app/MsRewards-Reborn/user_data/', path="configs.json") + return send_from_directory(directory='/app/MsRewards-Reborn/user_data/', path=filename)