forked from DanCoughlin/caps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.py
35 lines (31 loc) · 1.76 KB
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Example:
# (r'^caps/', include('caps.foo.urls')),
(r'^pilot/(?P<type>(object|batch))/new', 'caps.pilot.views.new_object'),
(r'^pilot/(?P<display>(list|icons))', 'caps.pilot.views.default'),
#(r'^pilot/(?P<arkid>(.*))$', 'caps.pilot.views.management'),
(r'^pilot/(?P<arkid>ark:(.)*)$', 'caps.pilot.views.management'),
(r'^pilot/meta/update$', 'caps.pilot.views.meta_update'),
(r'^pilot/meta/remove/(?P<metaid>\d+)/$', 'caps.pilot.views.remove_metadata'),
(r'^pilot/meta/add/$', 'caps.pilot.views.add_metadata'),
(r'^pilot/audit/(?P<arkid>ark:(.)*)$', 'caps.pilot.views.audit'),
(r'^pilot/log/(?P<arkid>ark:(.)*)$', 'caps.pilot.views.get_log'),
(r'^pilot/search/(?P<keyword>(.)*)$', 'caps.pilot.views.search'),
(r'^pilot/autocomplete/$', 'caps.pilot.views.autocomplete'),
#/pilot/upload_progress/?X-Progress-ID=0a8ee3eb055b6f043ed48c8208c9c623
(r'^pilot/upload_progress/$', 'caps.pilot.views.upload_progress'),
(r'^getIdentifier', 'caps.pilot.views.get_identifier'),
(r'^getFixity', 'caps.pilot.views.get_fixity'),
(r'^pilot/upload_batch$', 'caps.pilot.views.upload_batch'),
(r'^pilot/upload', 'caps.pilot.views.upload_object'),
(r'^pilot/screenshots', 'caps.pilot.views.screenshots'),
# Uncomment the admin/doc line below to enable admin documentation:
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
(r'^admin/', include(admin.site.urls)),
(r'^site_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root':'/var/www/django/caps/site_media/'} ),
)