diff --git a/backend/main.py b/backend/main.py index 6ad40ac..9e3e50a 100644 --- a/backend/main.py +++ b/backend/main.py @@ -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."""