-
Notifications
You must be signed in to change notification settings - Fork 88
/
Copy pathurls.py
41 lines (38 loc) · 2.18 KB
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#
# Freesound is (c) MUSIC TECHNOLOGY GROUP, UNIVERSITAT POMPEU FABRA
#
# Freesound is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# Freesound is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# Authors:
# See AUTHORS file.
#
from django.urls import path, re_path
import forum.views as forum_views
import search.views as search_views
urlpatterns = [
path('', forum_views.forums, name='forums-forums'),
path('moderate/', forum_views.moderate_posts, name="forums-moderate"),
path('forums-search/', search_views.search_forum, name="forums-search"),
path('hot-treads/', forum_views.hot_threads, name="forums-hot-threads"),
path('<slug:forum_name_slug>/', forum_views.forum, name="forums-forum"),
path('<slug:forum_name_slug>/new-thread/', forum_views.new_thread, name="forums-new-thread"),
path('<slug:forum_name_slug>/<int:thread_id>/', forum_views.thread, name="forums-thread"),
path('<slug:forum_name_slug>/<int:thread_id>/unsubscribe/', forum_views.unsubscribe_from_thread, name="forums-thread-unsubscribe"),
path('<slug:forum_name_slug>/<int:thread_id>/subscribe/', forum_views.subscribe_to_thread, name="forums-thread-subscribe"),
path('<slug:forum_name_slug>/<int:thread_id>/<int:post_id>/', forum_views.post, name="forums-post"),
path('<slug:forum_name_slug>/<int:thread_id>/reply/', forum_views.reply, name="forums-reply"),
path('<slug:forum_name_slug>/<int:thread_id>/<int:post_id>/reply/', forum_views.reply, name="forums-reply-quote"),
path('post/<int:post_id>/edit/', forum_views.post_edit, name="forums-post-edit"),
path('post/<int:post_id>/delete-confirm/', forum_views.post_delete_confirm, name="forums-post-delete-confirm"),
]