mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 23:28:26 +02:00
Initial commit that merge both the front end and the API in the same repository
This commit is contained in:
commit
76f98b74dd
285 changed files with 51318 additions and 0 deletions
26
api/config/api_urls.py
Normal file
26
api/config/api_urls.py
Normal file
|
@ -0,0 +1,26 @@
|
|||
from rest_framework import routers
|
||||
from django.conf.urls import include, url
|
||||
from funkwhale_api.music import views
|
||||
from funkwhale_api.playlists import views as playlists_views
|
||||
|
||||
router = routers.SimpleRouter()
|
||||
router.register(r'tags', views.TagViewSet, 'tags')
|
||||
router.register(r'tracks', views.TrackViewSet, 'tracks')
|
||||
router.register(r'artists', views.ArtistViewSet, 'artists')
|
||||
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')
|
||||
urlpatterns = router.urls
|
||||
|
||||
urlpatterns += [
|
||||
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/', 'rest_framework_jwt.views.obtain_jwt_token'),
|
||||
url(r'^token/refresh/', 'rest_framework_jwt.views.refresh_jwt_token'),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue