X-Git-Url: https://git.mdrn.pl/audio.git/blobdiff_plain/ac39503a5a9a16c1098e65ee16a866cf8eb19a8f..c00e6aa94827f4972dc33fa79a53b5d9a15a726e:/src/archive/urls.py?ds=sidebyside diff --git a/src/archive/urls.py b/src/archive/urls.py index 0deb995..da1873c 100644 --- a/src/archive/urls.py +++ b/src/archive/urls.py @@ -1,4 +1,5 @@ from django.conf.urls import url +from django.urls import path from django.views.generic import RedirectView from . import views @@ -12,11 +13,12 @@ urlpatterns = [ url(r'^unpublished/$', views.list_unpublished, name="list_unpublished"), url(r'^publishing/$', views.list_publishing, name="list_publishing"), url(r'^published/$', views.list_published, name="list_published"), + path('book//', views.BookView.as_view(), name="book"), url(r'^file/(\d+)/$', views.file_managed, name="file"), url(r'^publish/(\d+)/$', views.publish, name="publish"), url(r'^convert/(\d+)/$', views.publish, {'publish': False}, name="convert"), url(r'^download/(\d+)/$', views.download, name="download"), - url(r'^download/(\d+)\.(mp3|ogg)$', views.download, name="download"), + url(r'^download/(\d+)\.(mp3|ogg|mkv)$', views.download, name="download"), url(r'^cancel/(\d+)/$', views.cancel_publishing, name="cancel_publishing"), url(r'^remove_to_archive/(\d+)/$', views.remove_to_archive, name="remove_to_archive"),