diff options
author | luxagraf <sng@luxagraf.net> | 2019-05-05 11:40:42 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2019-05-05 11:40:42 -0500 |
commit | a2891841fbf1e5660693a1f9109f2e6810224a3b (patch) | |
tree | be0aae73fe8f5e6271a76e8c5c6dc35b00f347a6 /app/django_comments/urls.py | |
parent | bdc06f56d538358f1fa07d35afb5733c790e3ab2 (diff) |
Diffstat (limited to 'app/django_comments/urls.py')
-rw-r--r-- | app/django_comments/urls.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/app/django_comments/urls.py b/app/django_comments/urls.py new file mode 100644 index 0000000..45599dc --- /dev/null +++ b/app/django_comments/urls.py @@ -0,0 +1,21 @@ +from django.conf.urls import url +from django.contrib.contenttypes.views import shortcut + +from .views.comments import post_comment, comment_done +from .views.moderation import ( + flag, flag_done, delete, delete_done, approve, approve_done, +) + + +urlpatterns = [ + url(r'^post/$', post_comment, name='comments-post-comment'), + url(r'^posted/$', comment_done, name='comments-comment-done'), + url(r'^flag/(\d+)/$', flag, name='comments-flag'), + url(r'^flagged/$', flag_done, name='comments-flag-done'), + url(r'^delete/(\d+)/$', delete, name='comments-delete'), + url(r'^deleted/$', delete_done, name='comments-delete-done'), + url(r'^approve/(\d+)/$', approve, name='comments-approve'), + url(r'^approved/$', approve_done, name='comments-approve-done'), + + url(r'^cr/(\d+)/(.+)/$', shortcut, name='comments-url-redirect'), +] |