diff --git a/savepointradio/api/urls.py b/savepointradio/api/urls.py index 2c53d47..45d810d 100644 --- a/savepointradio/api/urls.py +++ b/savepointradio/api/urls.py @@ -22,14 +22,14 @@ class OptionalSlashRouter(DefaultRouter): router = OptionalSlashRouter() -router.register(r'history', HistoryViewSet, base_name='history') -router.register(r'profiles', ProfileViewSet, base_name='profile') +router.register(r'history', HistoryViewSet, basename='history') +router.register(r'profiles', ProfileViewSet, basename='profile') -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'stores', StoreViewSet, base_name='store') -router.register(r'songs', SongViewSet, base_name='song') +router.register(r'albums', AlbumViewSet, basename='album') +router.register(r'artists', ArtistViewSet, basename='artist') +router.register(r'games', GameViewSet, basename='game') +router.register(r'stores', StoreViewSet, basename='store') +router.register(r'songs', SongViewSet, basename='song') urlpatterns = [ path('next/', NextRequest.as_view()),