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

urlpatterns = [
luxcem's avatar
luxcem committed
6 7 8 9 10
    url(
        r"^article/list",
        ArticleList.as_view(),
        name="article-list"
    ),
luxcem's avatar
luxcem committed
11 12 13 14 15 16 17 18 19 20 21
    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"
    ),
]