This commit is contained in:
parent
f65aa23021
commit
0665ba2808
|
@ -407,7 +407,7 @@ def logs():
|
|||
|
||||
|
||||
|
||||
@app.route('/pdf/<path:filename>', methods=['GET', 'POST'])
|
||||
@app.route('/download/<path:filename>', methods=['GET', 'POST'])
|
||||
def download(filename):
|
||||
return send_from_directory(directory='/user_data', filename=filename)
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
<tr><td>logs viewer</td></tr>
|
||||
</table>
|
||||
</form>
|
||||
<a href="/images/myw3schoolsimage.jpg" download></a>
|
||||
<a href="/download/conofigs.json">download all config</a>
|
||||
{% endif %}
|
||||
{%endblock %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue