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