forked from piair/MsRewards-Reborn
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'])
|
||||
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)
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user