Source

Ochs / ochs_filebrowser / urls.py

Full commit
from django.conf.urls.defaults import *

urlpatterns = patterns('ochs_filebrowser.views',
    
    url(r'^(?P<dir_name>[_a-zA-Z0-9./-]+)/mkdir/', 'mkdir'),
    url(r'^(?P<dir_name>[_a-zA-Z0-9./-]+)/upload/', 'upload'),
    url(r'^(?P<dir_name>[_a-zA-Z0-9./-]+)/delete/$', 'delete'),
    url(r'^(?P<dir_name>[_a-zA-Z0-9./-]+)/rename/(?P<file_name>[a-zA-Z0-9._-]+)', 'rename'),
    url(r'^mkdir/', 'mkdir'),
    url(r'^upload/', 'upload'),
    url(r'^delete/$', 'delete'),
    url(r'^rename/(?P<file_name>[a-zA-Z0-9._-]+)', 'rename'),
    url(r'^(?P<dir_name>[_a-zA-Z0-9./-]+)/$', 'index'),
    url(r'^$', 'index', name='filebrowser-index'),

)