from . import views
from django.conf.urls import url, include
from rest_framework import routers

app_name = 'movies'
router = routers.DefaultRouter()
router.register(r'movies', views.MovieViewSet)
router.register(r'api/v1/movies', views.APIMovieViewSet)

urlpatterns = [
    url(r'^validate/$', views.validate, name='validate'),
    url(r'^logout/$', views.log_out, name='logout'),
    url(r'^$', views.Handler.as_view(), name='base_template'),
    url(r'^', include(router.urls)),
]
