This commit is contained in:
piair 2023-08-21 19:34:04 +02:00
parent f65aa23021
commit 0665ba2808
2 changed files with 2 additions and 2 deletions

View File

@ -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): def download(filename):
return send_from_directory(directory='/user_data', filename=filename) return send_from_directory(directory='/user_data', filename=filename)

View File

@ -64,7 +64,7 @@
<tr><td>logs viewer</td></tr> <tr><td>logs viewer</td></tr>
</table> </table>
</form> </form>
<a href="/images/myw3schoolsimage.jpg" download></a> <a href="/download/conofigs.json">download all config</a>
{% endif %} {% endif %}
{%endblock %} {%endblock %}