Skip to content
Snippets Groups Projects
Select Git revision
  • develop default protected
  • 1514-update-channels
  • 1518-update-django-allauth
  • 1515-update-click
  • master
  • 1434-update-pyld
  • heyarne/funkwhale-enhancement/linting
  • 1481
  • profile-menu-redesign
  • update-frontend-dependencies
  • fix-track-table
  • back-option-for-edits
  • album-sliders
  • cherry-pick-31413fe6
  • 1108-remove-jwt-and-switch-to-oauth-for-ui-auth
  • set-sast-config-2
  • set-sast-config-1
  • 1121-download
  • plugins-v3
  • plugins-v2
  • 1.1.2
  • 1.1.1
  • 1.1
  • 1.1-rc2
  • 1.1-rc1
  • 1.0.1
  • 1.0
  • 1.0-rc1
  • 0.21.2
  • 0.21.1
  • 0.21
  • 0.21-rc2
  • 0.21-rc1
  • 0.20.1
  • 0.20.0
  • 0.20.0-rc1
  • 0.19.1
  • 0.19.0
  • 0.19.0-rc2
  • 0.19.0-rc1
40 results

utils.py

Blame
  • Forked from funkwhale / funkwhale
    Source project has a limited visibility.
    api_urls.py NaN GiB
    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
    from rest_framework_jwt import views as jwt_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')
    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'^token/refresh/', jwt_views.refresh_jwt_token),
    ]
    
    urlpatterns = [
        url(r'^v1/', include(v1_patterns, namespace='v1'))
    ]