summaryrefslogtreecommitdiff
path: root/app/figments/urls.py
blob: 2114792dc86d4390b3fc2a607f46c5f4b65903b7 (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
from django.conf.urls import url

from . import views

urlpatterns = [
    url(
        regex=r'^feed.xml',
        view=views.FigRSSFeedView(),
        name="feed"
    ),
    url(
        regex=r'series/$',
        view=views.SeriesListView.as_view(),
        name='list_series'
    ),
    url(
        regex=r'(?P<slug>[-\w]+).txt$',
        view=views.FigmentDetailViewTXT.as_view(),
        name="detail-txt"
    ),
    url(
        regex=r'(?P<slug>[-\w]+)$',
        view=views.FigmentDetailView.as_view(),
        name='detail'
    ),
    url(
        regex=r'^$',
        view=views.FigmentListView.as_view(),
        name='list'
    ),
]