From 1644dc32e7bce377a302c59214c4c69aa81ceaa1 Mon Sep 17 00:00:00 2001 From: Martin Felber <45291671+FelberMartin@users.noreply.github.com> Date: Sun, 3 Nov 2024 19:58:48 +0100 Subject: [PATCH] Development: Fix content-type of /.well-known/assetlinks.json (#9648) --- .../communication/web/AndroidAppSiteAssociationResource.java | 2 +- src/main/webapp/robots.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/tum/cit/aet/artemis/communication/web/AndroidAppSiteAssociationResource.java b/src/main/java/de/tum/cit/aet/artemis/communication/web/AndroidAppSiteAssociationResource.java index 9f7d2e60b6d4..c0679edec1ea 100644 --- a/src/main/java/de/tum/cit/aet/artemis/communication/web/AndroidAppSiteAssociationResource.java +++ b/src/main/java/de/tum/cit/aet/artemis/communication/web/AndroidAppSiteAssociationResource.java @@ -37,7 +37,7 @@ public class AndroidAppSiteAssociationResource { * * @return assetslinks as json */ - @GetMapping("assetlinks.json") + @GetMapping(value = "assetlinks.json", produces = "application/json") @ManualConfig public ResponseEntity> getAndroidAssetLinks() { if (androidAppPackage == null || androidAppPackage.length() < 4 || sha256CertFingerprints == null || sha256CertFingerprints.length() < 20) { diff --git a/src/main/webapp/robots.txt b/src/main/webapp/robots.txt index 38b8f051f7c1..363432b8f4b2 100644 --- a/src/main/webapp/robots.txt +++ b/src/main/webapp/robots.txt @@ -9,3 +9,4 @@ Disallow: /api/logs/ Disallow: /api/users/ Disallow: /management/ Disallow: /v3/api-docs/ +Allow: /.well-known/