diff --git a/clone_sound_cloud/config/urls.py b/clone_sound_cloud/config/urls.py index 4941ba9..b2410b9 100644 --- a/clone_sound_cloud/config/urls.py +++ b/clone_sound_cloud/config/urls.py @@ -1,5 +1,6 @@ from django.contrib import admin from django.urls import path, include +from django.views.generic import TemplateView from drf_spectacular.views import SpectacularAPIView, SpectacularSwaggerView urlpatterns = [ @@ -10,6 +11,9 @@ path('api/social/', include('social_django.urls')), + path('.well-known/assetlinks.json', TemplateView.as_view(template_name='assetlinks.json', + content_type='application/json')), + path('api/schema/', SpectacularAPIView.as_view(), name='schema'), path('api/docs/', SpectacularSwaggerView.as_view(url_name='schema'), name='swagger-ui'), diff --git a/clone_sound_cloud/templates/assetlinks.json b/clone_sound_cloud/templates/assetlinks.json new file mode 100644 index 0000000..dee6c78 --- /dev/null +++ b/clone_sound_cloud/templates/assetlinks.json @@ -0,0 +1,15 @@ +[ + { + "relation" : [ + "delegate_permission/common.handle_all_urls", + "delegate_permission/common.get_login_creds" + ], + "target" : { + "namespace" : "android_app", + "package_name" : "com.example.android", + "sha256_cert_fingerprints" : [ + "SHA_HEX_VALUE" + ] + } + } +]