from django.urls import path
from . import views

urlpatterns = [
    path('', views.ArticlesListView.as_view(), name='articles_list'),
    path('cat/<str:category>', views.ArticlesListView.as_view(), name='articles_by_category_list'),

    # VERY IMPORTANT: put this BEFORE the slug route
    path('add_article_comment/', views.add_article_comment, name='add_article_comment'),

    path('<slug:slug>/', views.ArticleDetailView.as_view(), name='articles_detail'),
]
