from articles.api.views import ArticleViewSet

from rest_framework.routers import DefaultRouter

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




###different classes for create,read,update and delete###

#from django.urls import path

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

#urlpatterns= [
#    path('',ArticleListView.as_view()),
#    path('create', ArticleCreateView.as_view()),

#    path('<pk>',ArticleDetailView.as_view()),
#    path('<pk>/update', ArticleUpdateView.as_view()),
#    path('<pk>/delete', ArticleDeleteView.as_view())


#    path('mytest', views.testingReact,name='mytest'),
#]