Feature: /.well-known/assetlinks.json für Google Play TWA-Verifikation (app.banyaro.twa)

This commit is contained in:
rene 2026-05-08 11:41:46 +02:00
parent 08382de8cb
commit f5c82101f3

View file

@ -329,6 +329,15 @@ app.mount("/media", StaticFiles(directory=MEDIA_DIR), name="media")
APP_VER = "771" # muss mit APP_VER in app.js übereinstimmen
@app.get("/.well-known/assetlinks.json")
async def assetlinks():
"""TWA-Verifikation für Google Play Store (app.banyaro.twa)."""
return Response(
content='[{"relation":["delegate_permission/common.handle_all_urls"],"target":{"namespace":"android_app","package_name":"app.banyaro.twa","sha256_cert_fingerprints":["49:02:DC:5B:63:C0:D7:42:7F:A4:DC:2F:EB:78:73:11:CC:B9:36:22:00:01:A0:03:1C:0A:F9:41:35:9F:D4:B7"]}}]',
media_type="application/json",
headers={"Cache-Control": "no-cache"},
)
@app.get("/api/version")
async def app_version():
"""Aktuelle Frontend-Version — wird beim App-Start gecheckt."""