from django.urls import path

from .views import (
    ArticleListView,
    ArticleDetailView,
    CategoryListView,
    PinnedArticlesView,
)

app_name = 'blog'

urlpatterns = [
    path('articles/', ArticleListView.as_view(), name='article-list'),
    path('articles/<slug:slug>/', ArticleDetailView.as_view(), name='article-detail'),
    path('categories/', CategoryListView.as_view(), name='category-list'),
    path('pinned/', PinnedArticlesView.as_view(), name='pinned-articles'),
]
