use directories and allow filetypes other than FLAC
[audio.git] / apps / archive / urls.py
1 from django.conf.urls.defaults import patterns, include, url
2
3 urlpatterns = patterns('',
4     url(r'^$', 'django.views.generic.simple.redirect_to', {'url': 'new/'}),
5
6     url(r'^new/$', 'archive.views.list_new', name="list_new"),
7     url(r'^new/(.+)/$', 'archive.views.file_new', name="file_new"),
8     url(r'^move_to_archive/(.+)/$', 'archive.views.move_to_archive', name="move_to_archive"),
9
10     url(r'^unpublished/$', 'archive.views.list_unpublished', name="list_unpublished"),
11     url(r'^publishing/$', 'archive.views.list_publishing', name="list_publishing"),
12     url(r'^published/$', 'archive.views.list_published', name="list_published"),
13     url(r'^file/(\d+)/$', 'archive.views.file_managed', name="file"),
14     url(r'^publish/(\d+)/$', 'archive.views.publish', name="publish"),
15     url(r'^cancel/(\d+)/$', 'archive.views.cancel_publishing', name="cancel_publishing"),
16
17     url(r'^unmanaged/$', 'archive.views.list_unmanaged', name="list_unmanaged"),
18     url(r'^unmanaged/(.+)/$', 'archive.views.file_unmanaged', name="file_unmanaged"),
19     url(r'^move_to_new/(.+)/$', 'archive.views.move_to_new', name="move_to_new"),
20 )