urls.py 348 Bytes
Newer Older
luxcem's avatar
luxcem committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from django.conf.urls import url
from rp.views import upvote, downvote

urlpatterns = [
    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"
    ),
]