34 lines
1.5 KiB
Python
34 lines
1.5 KiB
Python
# Episodes.Community - Community-Driven TV Show Episode Link Sharing Site
|
|
# Copyright (C) 2018 Evert "Diamond" Prants <evert@lunasqu.ee>, Taizo "Tsa6" Simpson <taizo@tsa6.net>
|
|
#
|
|
# This program 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.
|
|
#
|
|
# This program 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 <https://www.gnu.org/licenses/>.
|
|
|
|
from django.conf.urls import url
|
|
|
|
from . import views
|
|
|
|
urlpatterns = [
|
|
url(r'^$', views.Boards.as_view()),
|
|
url(r'^vote/(?P<replyid>\d+)/(?P<positive>[0-1])/?$', views.BoardVoteSubmit.as_view()),
|
|
url(r'^board/new$', views.BoardForm),
|
|
url(r'^board/report/(?P<rid>\d{1,4})/?$', views.ReportForm),
|
|
url(r'^board/pin/(?P<bid>\d{1,4})/?$', views.BoardPin),
|
|
url(r'^board/delete/reply/(?P<rid>\d{1,4})/?$', views.BoardDeleteReply),
|
|
url(r'^board/delete/(?P<bid>\d{1,4})/?$', views.BoardDelete),
|
|
url(r'^board/lock/(?P<bid>\d{1,4})/?$', views.BoardLock),
|
|
url(r'^board/reply/(?P<bid>\d{1,4})/?$', views.BoardReplyForm),
|
|
url(r'^board/(?P<bid>\d{1,4})(-[\w-]+)?/?$', views.Board.as_view()),
|
|
]
|
|
|