1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-06-29 08:27:55 +00:00
seahub/api/urls.py
poetwang 3f74a93b6b [api] If the user send a oid when getting SeafDir ,check whether the dir
has been modified
fix a bug when getting file size and code optimization
2012-08-18 17:41:21 +08:00

19 lines
721 B
Python

from django.conf.urls.defaults import *
from views import *
urlpatterns = patterns('',
url(r'^ping/$', Ping.as_view()),
url(r'login/$', api_login),
url(r'^$', ReposView.as_view()),
url(r'^repo/list/$', ReposView.as_view(), name='repos'),
url(r'^repo/(?P<repo_id>[^/]+)/$', RepoView.as_view(), name='repo'),
url(r'^dir/(?P<repo_id>[^/]+)/$', RepoDirPathView.as_view(), name='repo-dir-path'),
url(r'^dir/(?P<repo_id>[^/]+)/(?P<dir_id>[^/]+)/$', RepoDirIdView.as_view(), name='repo-dir-id'),
url(r'^file/(?P<repo_id>[^/]+)/$', RepoFilePathView.as_view(), name='repo-file-path'),
url(r'^file/(?P<repo_id>[^/]+)/(?P<file_id>[^/]+)/$', RepoFileIdView.as_view(), name='repo-file-id'),
)