1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-15 14:49:09 +00:00
Files
seahub/seahub/api2/urls.py

45 lines
2.5 KiB
Python
Raw Normal View History

2012-12-14 20:53:36 +08:00
from django.conf.urls.defaults import *
from views import *
urlpatterns = patterns('',
url(r'^ping/$', Ping.as_view()),
url(r'^auth/ping/$', AuthPing.as_view()),
url(r'^auth-token/', ObtainAuthToken.as_view()),
2012-12-23 22:27:16 +08:00
# RESTful API
url(r'^account/info/$', Account.as_view()),
2013-06-29 11:01:28 +08:00
url(r'^repos/$', Repos.as_view(), name="api2-repos"),
url(r'^repos/(?P<repo_id>[-0-9a-f]{36})/$', Repo.as_view(), name="api2-repo"),
2012-12-23 22:27:16 +08:00
url(r'^repos/(?P<repo_id>[-0-9a-f]{36})/download-info/$', DownloadRepo.as_view()),
2012-12-25 11:09:34 +08:00
url(r'^repos/(?P<repo_id>[-0-9a-f]{36})/upload-link/$', UploadLinkView.as_view()),
url(r'^repos/(?P<repo_id>[-0-9a-f]{36})/update-link/$', UpdateLinkView.as_view()),
2012-12-23 22:27:16 +08:00
url(r'^repos/(?P<repo_id>[-0-9-a-f]{36})/file/$', FileView.as_view(), name='FileView'),
url(r'^repos/(?P<repo_id>[-0-9-a-f]{36})/file/shared-link/$', FileSharedLinkView.as_view()),
url(r'^repos/(?P<repo_id>[-0-9-a-f]{36})/dir/$', DirView.as_view(), name='DirView'),
url(r'^starredfiles/', StarredFileView.as_view(), name='starredfiles'),
2013-02-20 20:51:37 +08:00
url(r'^shared-repos/$', SharedRepos.as_view(), name='sharedrepos'),
url(r'^shared-repos/(?P<repo_id>[-0-9-a-f]{36})/$', SharedRepo.as_view(), name='sharedrepo'),
2013-05-18 11:01:33 +08:00
url(r'^beshared-repos/$', BeShared.as_view(), name='beshared'),
2012-12-29 10:31:23 +08:00
url(r'^groups/$', Groups.as_view()),
url(r'^html/activity/$', ActivityHtml.as_view()),
url(r'^html/discussion/(?P<group_id>\d+)/$', DiscussionHtml.as_view(), name="api_discussion"),
#url(r'^html/repo_history_changes/(?P<repo_id>[-0-9a-f]{36})/$', RepoHistoryChangeHtml.as_view(), name='api_repo_history_changes'),
#url(r'^html/events/$', EventsHtml.as_view()),
url(r'^html/group_reply/(?P<msg_id>[\d]+)/$', MsgReplyHtml.as_view(), name='api_msg_reply'),
# Folowing is only for debug, will be removed
url(r'^html/events/$', events2),
url(r'^html/repo_history_changes/(?P<repo_id>[-0-9a-f]{36})/$', api_repo_history_changes, name='api_repo_history_changes'),
#url(r'^html/group_reply/(?P<msg_id>[\d]+)/$', api_msg_reply, name='api_msg_reply'),
url(r'^html/activity2/$', activity2),
url(r'^html/discussions2/(?P<group_id>\d+)/$', discussions2, name="api_discussions2"),
url(r'^html/discussion2/(?P<msg_id>\d+)/$', discussion2, name="api_discussion2"),
url(r'^html/ajax/discussions2/(?P<group_id>\d+)/$', ajax_discussions2, name="api_ajax_discussions2"),
2012-12-29 10:31:23 +08:00
# Deprecated
url(r'^repos/(?P<repo_id>[-0-9-a-f]{36})/fileops/delete/$', OpDeleteView.as_view()),
2012-12-14 20:53:36 +08:00
)