summaryrefslogtreecommitdiff
path: root/app/src/urls.py
blob: 1e1488a12fc221a5fe7e79c975f711bfc12bda6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
from django.urls import path, re_path

from . import views

app_name = "src"

urlpatterns = [
    path(
        r'feed.xml',
        views.SrcRSSFeedView(),
        name="feed"
    ),
    path(
        r'topic/<str:slug>',
        views.TopicListView.as_view(),
        name="list_topics"
    ),
    path(
        r'books/<str:slug>',
        views.BookDetailView.as_view(),
        name='detail_book'
    ),
    path(
        r'books/',
        views.BookListView.as_view(),
        name='list_books'
    ),
    path(
        r'<slug>.txt',
        views.EntryDetailViewTXT.as_view(),
        name="detail-txt"
    ),
    path(
        r'<slug>',
        views.EntryDetailView.as_view(),
        name="detail"
    ),
    path(
        r'',
        views.SrcListView.as_view(),
        name="list",
    ),
]