aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/content/urls.py
blob: cd41751b3ae1d27f44d6cf71b4988c73dbe8aa99 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from django.urls import path

from . import views

app_name = "content"
urlpatterns = [
    path("", views.ArticlesView.as_view(), name='articles'),
    path("category/<str:category>/", views.CategoryView.as_view(), name='category'),
    path(
        "category/<str:category>/<str:article>/",
        views.ArticleView.as_view(),
        name='category_article'
    ),
    path("<str:article>/", views.ArticleView.as_view(), name='article')
]