feat: Logo- und Favicon-Routing hinzugefügt; Versionsnummer auf 1.0.65 erhöht

This commit is contained in:
2026-05-10 11:38:24 +02:00
parent fcc277d1d3
commit a15d6b0e27
2 changed files with 12 additions and 1 deletions

11
app.py
View File

@@ -1508,6 +1508,17 @@ def index():
@app.route('/logo.png')
def r_logo():
logo = Path(__file__).with_name('PiCopy_Logo.png')
if not logo.exists():
try:
data = _urlreq.urlopen(f'{RAW_BASE}/PiCopy_Logo.png', timeout=15).read()
logo.write_bytes(data)
except Exception:
return '', 404
return send_file(logo, mimetype='image/png')
@app.route('/favicon.ico')
def r_favicon():
logo = Path(__file__).with_name('PiCopy_Logo.png')
if logo.exists():
return send_file(logo, mimetype='image/png')