|
|
@@ -22,26 +22,27 @@ urlpatterns = patterns('filebrowser.views',
|
|
|
# Base view
|
|
|
url(r'^$', 'index', name='index'),
|
|
|
|
|
|
- url(r'listdir(?P<path>/.*)', 'listdir', name='listdir'),
|
|
|
- url(r'display(?P<path>/.*)', 'display', name='display'),
|
|
|
- url(r'stat(?P<path>/.*)', 'stat', name='stat'),
|
|
|
- url(r'download(?P<path>/.*)', 'download', name='download'),
|
|
|
- url(r'status', 'status', name='status'),
|
|
|
- url(r'home_relative_view(?P<path>/.*)', 'home_relative_view', name='home_relative_view'),
|
|
|
# Catch-all for viewing a file (display) or a directory (listdir)
|
|
|
- url(r'view(?P<path>/.*)', 'view', name='view'),
|
|
|
- url(r'chooser(?P<path>/.*)', 'chooser', name='choose'),
|
|
|
- url(r'edit(?P<path>/.*)', 'edit', name='edit'),
|
|
|
- url(r'save', 'save_file'),
|
|
|
+ url(r'^view(?P<path>/.*)$', 'view', name='view'),
|
|
|
+
|
|
|
+ url(r'^listdir(?P<path>/.*)$', 'listdir', name='listdir'),
|
|
|
+ url(r'^display(?P<path>/.*)$', 'display', name='display'),
|
|
|
+ url(r'^stat(?P<path>/.*)$', 'stat', name='stat'),
|
|
|
+ url(r'^download(?P<path>/.*)$', 'download', name='download'),
|
|
|
+ url(r'^status$', 'status', name='status'),
|
|
|
+ url(r'^home_relative_view(?P<path>/.*)$', 'home_relative_view', name='home_relative_view'),
|
|
|
+ url(r'^chooser(?P<path>/.*)$', 'chooser', name='choose'),
|
|
|
+ url(r'^edit(?P<path>/.*)$', 'edit', name='edit'),
|
|
|
|
|
|
# POST operations
|
|
|
- url(r'upload/file$', 'upload_file', name='upload_file'),
|
|
|
- url(r'upload/archive$', 'upload_archive', name='upload_archive'),
|
|
|
- url(r'rename', 'rename', name='rename'),
|
|
|
- url(r'mkdir', 'mkdir', name='mkdir'),
|
|
|
- url(r'touch', 'touch', name='touch'),
|
|
|
- url(r'move', 'move', name='move'),
|
|
|
- url(r'rmtree', 'rmtree', name='rmtree'),
|
|
|
- url(r'chmod', 'chmod', name='chmod'),
|
|
|
- url(r'chown', 'chown', name='chown'),
|
|
|
+ url(r'^save$', 'save_file'),
|
|
|
+ url(r'^upload/file$', 'upload_file', name='upload_file'),
|
|
|
+ url(r'^upload/archive$', 'upload_archive', name='upload_archive'),
|
|
|
+ url(r'^rename$', 'rename', name='rename'),
|
|
|
+ url(r'^mkdir$', 'mkdir', name='mkdir'),
|
|
|
+ url(r'^touch$', 'touch', name='touch'),
|
|
|
+ url(r'^move$', 'move', name='move'),
|
|
|
+ url(r'^rmtree$', 'rmtree', name='rmtree'),
|
|
|
+ url(r'^chmod$', 'chmod', name='chmod'),
|
|
|
+ url(r'^chown$', 'chown', name='chown'),
|
|
|
)
|