Skip to content

Commit

Permalink
Merge pull request #14 from MafanNam/dev-0.0.7
Browse files Browse the repository at this point in the history
Add support for Digital Asset Links
  • Loading branch information
MafanNam authored Jan 3, 2024
2 parents 1b1efa1 + 962ac2e commit af91ab4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions clone_sound_cloud/config/urls.py
Original file line number Diff line number Diff line change
@@ -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 = [
Expand All @@ -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'),
Expand Down
15 changes: 15 additions & 0 deletions clone_sound_cloud/templates/assetlinks.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
}
]

0 comments on commit af91ab4

Please sign in to comment.