mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-06 03:09:55 +02:00
See #578: added opengraph and oembed data on artist / album / track urls
This commit is contained in:
parent
815d729367
commit
9220b2f0f1
14 changed files with 867 additions and 21 deletions
18
api/config/spa_urls.py
Normal file
18
api/config/spa_urls.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
from django import urls
|
||||
|
||||
from funkwhale_api.music import spa_views
|
||||
|
||||
|
||||
urlpatterns = [
|
||||
urls.re_path(
|
||||
r"^library/tracks/(?P<pk>\d+)/?$", spa_views.library_track, name="library_track"
|
||||
),
|
||||
urls.re_path(
|
||||
r"^library/albums/(?P<pk>\d+)/?$", spa_views.library_album, name="library_album"
|
||||
),
|
||||
urls.re_path(
|
||||
r"^library/artists/(?P<pk>\d+)/?$",
|
||||
spa_views.library_artist,
|
||||
name="library_artist",
|
||||
),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue