1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-13 13:50:07 +00:00

add api for mobie app

This commit is contained in:
poet
2012-07-14 10:47:59 +08:00
parent 06e8f248b5
commit 823b437091
4 changed files with 274 additions and 0 deletions

15
api/urls.py Normal file
View File

@@ -0,0 +1,15 @@
from django.conf.urls.defaults import *
from views import *
urlpatterns = patterns('',
url(r'^/$', list_repo),
url(r'^repo/list/$', list_repo),
url(r'^repo/(?P<repo_id>[^/]+)/$', get_repo_info),
url(r'^dir/(?P<repo_id>[^/]+)/root/$', get_repo_dir_path),
url(r'^dir/(?P<repo_id>[^/]+)/$', get_repo_dir_path),
url(r'^dir/(?P<repo_id>[^/]+)/(?P<dir_id>[^/]+)/$', get_repo_dir_id),
url(r'^file/(?P<repo_id>[^/]+)/(?P<file_id>[^/]+)/$', get_repo_file_id),
)