tweak: use qr code image for favicon as well (#3031)

use qr code image for favicon as well
This commit is contained in:
Arc
2025-03-12 12:12:43 +01:00
committed by GitHub
parent 1833adc0a1
commit 28e32a54a4
4 changed files with 5 additions and 6 deletions
+1 -2
View File
@@ -1,5 +1,4 @@
from http import HTTPStatus
from pathlib import Path
from typing import Annotated, List, Optional, Union
from urllib.parse import urlencode, urlparse
@@ -37,7 +36,7 @@ generic_router = APIRouter(
@generic_router.get("/favicon.ico", response_class=FileResponse)
async def favicon():
return FileResponse(Path("lnbits", "static", "favicon.ico"))
return RedirectResponse(settings.lnbits_qr_logo)
@generic_router.get("/", response_class=HTMLResponse)