tests
This commit is contained in:
parent
e2f47432c4
commit
f1d74b9921
|
@ -406,10 +406,11 @@ def logs():
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@login_required
|
|
||||||
@app.route('/download/<path:filename>', methods=['GET', 'POST'])
|
@app.route('/download/<path:filename>', methods=['GET', 'POST'])
|
||||||
def download(filename):
|
@login_required
|
||||||
return send_from_directory(directory='/app/MsRewards-Reborn/user_data/', path=filename)
|
def download(filename):
|
||||||
|
print("file send !")
|
||||||
|
return send_from_directory(directory='/app/MsRewards-Reborn/user_data/', path=filename, as_attachment=True)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue