from django.conf.urls.defaults import *
import views

urlpatterns = patterns('',
    (r'addFolder', views.add_folder),
    (r'upload', views.upload_files),
    (r'add_category', views.add_category),
    (r'add', views.add),
    (r'^([A-Z0-9].*)/chunk$', views.chunk),
    (r'^editFile/', views.editFile),
    (r'^deleteFiles/', views.deleteFiles),
    (r'^moveFiles/', views.moveFiles),
    (r'makePrivate/', views.makeFilePrivate),
    (r'makePublic/', views.makeFilePublic),
    (r'json_list', views.fileList),
    (r'browse', views.browse)
)

# urlpatterns += patterns('views',
#    (r'^$', 'index'),
#    (r'^add$', 'add'),
#    (r'^([A-Z0-9].*)/$', 'view'),
#    (r'^([A-Z0-9].*)/chunk$', 'chunk'),
#    (r'^([A-Z0-9].*)/(.+)$', 'download'),
#    (r'^([A-Z0-9].*)$', 'view'),
# )
