da1873cf4b1776a92f45955262893912551e4863
[audio.git] / src / archive / urls.py
1 from django.conf.urls import url
2 from django.urls import path
3 from django.views.generic import RedirectView
4 from . import views
5
6 urlpatterns = [
7     url(r'^$', RedirectView.as_view(url='new/')),
8
9     url(r'^new/$', views.list_new, name="list_new"),
10     url(r'^new/(.+)/$', views.file_new, name="file_new"),
11     url(r'^move_to_archive/(.+)/$', views.move_to_archive, name="move_to_archive"),
12
13     url(r'^unpublished/$', views.list_unpublished, name="list_unpublished"),
14     url(r'^publishing/$', views.list_publishing, name="list_publishing"),
15     url(r'^published/$', views.list_published, name="list_published"),
16     path('book/<slug:slug>/', views.BookView.as_view(), name="book"),
17     url(r'^file/(\d+)/$', views.file_managed, name="file"),
18     url(r'^publish/(\d+)/$', views.publish, name="publish"),
19     url(r'^convert/(\d+)/$', views.publish, {'publish': False}, name="convert"),
20     url(r'^download/(\d+)/$', views.download, name="download"),
21     url(r'^download/(\d+)\.(mp3|ogg|mkv)$', views.download, name="download"),
22     url(r'^cancel/(\d+)/$', views.cancel_publishing, name="cancel_publishing"),
23     url(r'^remove_to_archive/(\d+)/$', views.remove_to_archive, name="remove_to_archive"),
24
25     url(r'^unmanaged/$', views.list_unmanaged, name="list_unmanaged"),
26     url(r'^unmanaged/(.+)/$', views.file_unmanaged, name="file_unmanaged"),
27     url(r'^move_to_new/(.+)/$', views.move_to_new, name="move_to_new"),
28 ]