add pages vote

This commit is contained in:
Zhao-Linux 2022-11-16 22:43:03 +07:00
parent 3ee2f2afb0
commit d86f3d8f3e
10 changed files with 310 additions and 1 deletions

View file

@ -59,6 +59,7 @@ from judge.views import (
totp,
user,
volunteer,
pagevote,
widgets,
internal,
)
@ -445,6 +446,8 @@ urlpatterns = [
]
),
),
url(r"^pagevotes/upvote/$", pagevote.upvote_page, name="pagevote_upvote"),
url(r"^pagevotes/downvote/$", pagevote.downvote_page, name="pagevote_downvote"),
url(r"^comments/upvote/$", comment.upvote_comment, name="comment_upvote"),
url(r"^comments/downvote/$", comment.downvote_comment, name="comment_downvote"),
url(r"^comments/hide/$", comment.comment_hide, name="comment_hide"),