From f5c82101f3317e02c567d822ab735f84f21c235f Mon Sep 17 00:00:00 2001 From: rene Date: Fri, 8 May 2026 11:41:46 +0200 Subject: [PATCH] =?UTF-8?q?Feature:=20/.well-known/assetlinks.json=20f?= =?UTF-8?q?=C3=BCr=20Google=20Play=20TWA-Verifikation=20(app.banyaro.twa)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/main.py | 9 +++++++++ 1 file changed, 9 insertions(+) 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."""