diff --git a/Flask/app.py b/Flask/app.py index 84755ea..395c72f 100644 --- a/Flask/app.py +++ b/Flask/app.py @@ -406,10 +406,11 @@ def logs(): -@login_required @app.route('/download/', methods=['GET', 'POST']) -def download(filename): - return send_from_directory(directory='/app/MsRewards-Reborn/user_data/', path=filename) +@login_required +def download(filename): + print("file send !") + return send_from_directory(directory='/app/MsRewards-Reborn/user_data/', path=filename, as_attachment=True)