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'
    ),
]