aboutsummaryrefslogtreecommitdiff
path: root/apps/forum/urls.py
blob: 3cfd250e66b52ad2694def42782307e7d971498d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from django.urls import path

from .views import (
    TopicListView,
    TopicDetailView,
)

app_name = "forum"

urlpatterns = [
    path(r'', TopicListView.as_view(), name='topic-list',),
    path(r'c/<str:slug>', TopicListView.as_view(), name='category-detail',),
    path(r't/<str:slug>/<int:pk>', TopicDetailView.as_view(), name='topic-detail',),
]