from rest_framework.routers import DefaultRouter

from movies import views

router = DefaultRouter()
router.register(r'', views.RoleViewSet, basename='roles')
router.register(r'movies', views.MoviesViewSet, basename='movies')
urlpatterns = router.urls
from rest_framework.routers import DefaultRouter

from movies import views

router = DefaultRouter()
router.register(r'', views.RoleViewSet, basename='roles')
router.register(r'movies', views.MoviesViewSet, basename='movies')
urlpatterns = router.urls