from articles.api.views import ArticleViewSet
from rest_framework.routers import DefaultRouter

router = DefaultRouter()
router.register(r'', ArticleViewSet, basename='articles')
urlpatterns = router.urls


# from django.conf.urls import url, include

# from .views import (
#     ArticleListView,
#     ArticleDetailView,
#     ArticleCreateView,
#     ArticleUpdateView,
#     ArticleDeleteView
# )


# urlpatterns = [
#     url(r'^$', ArticleListView.as_view()),
#     url(r'^create/$', ArticleCreateView.as_view()),
#     url(r'^(?P<pk>\d+)/$', ArticleDetailView.as_view()),
#     url(r'^(?P<pk>\d+)/update/$', ArticleUpdateView.as_view()),
#     url(r'^(?P<pk>\d+)/delete/$', ArticleDeleteView.as_view()),
# ]
