urls.py 631 Bytes
Newer Older
luxcem's avatar
luxcem committed
1
from django.conf.urls import url
luxcem's avatar
luxcem committed
2
from rp.views.votes import upvote, downvote
cynddl's avatar
cynddl committed
3
from rp.views.articles import ArticleListFlux
luxcem's avatar
luxcem committed
4 5

urlpatterns = [
luxcem's avatar
luxcem committed
6
    url(
cynddl's avatar
cynddl committed
7 8
        r"^article/list/(?P<filter_view>\w+)",
        ArticleListFlux.as_view(),
luxcem's avatar
luxcem committed
9 10
        name="article-list"
    ),
11 12 13 14 15
    url(
        r"^article/list",
        ArticleListFlux.as_view(),
        name="article-list"
    ),
luxcem's avatar
luxcem committed
16 17 18 19 20 21 22 23 24 25 26
    url(
        r"^votes/upvote/(?P<content_type>\d+)/(?P<object_id>\d+)$",
        upvote,
        name="und-upvote"
    ),
    url(
        r"^votes/downvote/(?P<content_type>\d+)/(?P<object_id>\d+)$",
        downvote,
        name="und-downvote"
    ),
]