spradio-server-django/savepointradio/api/urls.py

14 lines
454 B
Python
Raw Normal View History

2018-03-28 20:12:55 +00:00
from rest_framework.routers import DefaultRouter
from api.views.radio import (AlbumViewSet, ArtistViewSet,
GameViewSet, SongViewSet)
router = DefaultRouter()
router.register(r'albums', AlbumViewSet, base_name='album')
router.register(r'artists', ArtistViewSet, base_name='artist')
router.register(r'games', GameViewSet, base_name='game')
router.register(r'songs', SongViewSet, base_name='song')
urlpatterns = router.urls