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)