mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 06:39:16 +02:00
Fixed #4: can now import artists and releases with a clean interface :party:
This commit is contained in:
parent
3ccb70d0a8
commit
aa80bd15fa
43 changed files with 1614 additions and 120 deletions
|
@ -4,8 +4,11 @@ from funkwhale_api.music import views
|
|||
from funkwhale_api.playlists import views as playlists_views
|
||||
from rest_framework_jwt import views as jwt_views
|
||||
|
||||
from dynamic_preferences.api.viewsets import GlobalPreferencesViewSet
|
||||
from dynamic_preferences.users.viewsets import UserPreferencesViewSet
|
||||
|
||||
router = routers.SimpleRouter()
|
||||
router.register(r'settings', GlobalPreferencesViewSet, base_name='settings')
|
||||
router.register(r'tags', views.TagViewSet, 'tags')
|
||||
router.register(r'tracks', views.TrackViewSet, 'tracks')
|
||||
router.register(r'trackfiles', views.TrackFileViewSet, 'trackfiles')
|
||||
|
@ -14,17 +17,27 @@ router.register(r'albums', views.AlbumViewSet, 'albums')
|
|||
router.register(r'import-batches', views.ImportBatchViewSet, 'import-batches')
|
||||
router.register(r'submit', views.SubmitViewSet, 'submit')
|
||||
router.register(r'playlists', playlists_views.PlaylistViewSet, 'playlists')
|
||||
router.register(r'playlist-tracks', playlists_views.PlaylistTrackViewSet, 'playlist-tracks')
|
||||
router.register(
|
||||
r'playlist-tracks',
|
||||
playlists_views.PlaylistTrackViewSet,
|
||||
'playlist-tracks')
|
||||
v1_patterns = router.urls
|
||||
|
||||
v1_patterns += [
|
||||
url(r'^providers/', include('funkwhale_api.providers.urls', namespace='providers')),
|
||||
url(r'^favorites/', include('funkwhale_api.favorites.urls', namespace='favorites')),
|
||||
url(r'^search$', views.Search.as_view(), name='search'),
|
||||
url(r'^radios/', include('funkwhale_api.radios.urls', namespace='radios')),
|
||||
url(r'^history/', include('funkwhale_api.history.urls', namespace='history')),
|
||||
url(r'^users/', include('funkwhale_api.users.api_urls', namespace='users')),
|
||||
url(r'^token/', jwt_views.obtain_jwt_token),
|
||||
url(r'^providers/',
|
||||
include('funkwhale_api.providers.urls', namespace='providers')),
|
||||
url(r'^favorites/',
|
||||
include('funkwhale_api.favorites.urls', namespace='favorites')),
|
||||
url(r'^search$',
|
||||
views.Search.as_view(), name='search'),
|
||||
url(r'^radios/',
|
||||
include('funkwhale_api.radios.urls', namespace='radios')),
|
||||
url(r'^history/',
|
||||
include('funkwhale_api.history.urls', namespace='history')),
|
||||
url(r'^users/',
|
||||
include('funkwhale_api.users.api_urls', namespace='users')),
|
||||
url(r'^token/',
|
||||
jwt_views.obtain_jwt_token),
|
||||
url(r'^token/refresh/', jwt_views.refresh_jwt_token),
|
||||
]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue