diff --git a/note_kfet/views.py b/note_kfet/views.py index 9ea86d30..1e5e22ad 100644 --- a/note_kfet/views.py +++ b/note_kfet/views.py @@ -6,6 +6,7 @@ from django.urls import reverse from django.views.generic import RedirectView from note.models import Alias from permission.backends import PermissionBackend +from django.http import JsonResponse class IndexView(LoginRequiredMixin, RedirectView): @@ -28,3 +29,13 @@ class IndexView(LoginRequiredMixin, RedirectView): # Non-Kfet members will don't see the transfer page, but their profile page return reverse("member:user_detail", args=(user.pk,)) + +def apple_app_site_association(request): + data = { + "webcredentials": { + "apps": [ + "P5246D3AFQ.org.crans.bde.note" + ] + } + } + return JsonResponse(data)