예제 #1
0
파일: urls.py 프로젝트: littlehei/seahub
    url(r'^ajax/(?P<repo_id>[-0-9a-f]{36})/repo-dir/recycle/more/$', ajax_repo_dir_recycle_more, name='ajax_repo_dir_recycle_more'),

    url(r'^_templates/(?P<template>.*)$', underscore_template, name="underscore_template"),

    ## ajax lib
    url(r'^ajax/lib/(?P<repo_id>[-0-9a-f]{36})/dir/$', list_lib_dir, name="list_lib_dir"),

    url(r'^ajax/unset-inner-pub-repo/(?P<repo_id>[-0-9a-f]{36})/$', ajax_unset_inner_pub_repo, name='ajax_unset_inner_pub_repo'),


    ### Apps ###
    (r'^api2/', include('seahub.api2.urls')),
    url(r'^api/v2.1/groups/$', Groups.as_view(), name='api-v2.1-groups'),
    url(r'^api/v2.1/groups/(?P<group_id>\d+)/$', Group.as_view(), name='api-v2.1-group'),
    url(r'^api/v2.1/groups/(?P<group_id>\d+)/members/$', GroupMembers.as_view(), name='api-v2.1-group-members'),
    url(r'^api/v2.1/groups/(?P<group_id>\d+)/members/bulk/$', GroupMembersBulk.as_view(), name='api-v2.1-group-members-bulk'),
    url(r'^api/v2.1/groups/(?P<group_id>\d+)/members/(?P<email>[^/]+)/$', GroupMember.as_view(), name='api-v2.1-group-member'),
    url(r'^api/v2.1/share-links/$', ShareLinks.as_view(), name='api-v2.1-share-links'),
    url(r'^api/v2.1/share-link/(?P<token>[a-f0-9]{10})/$', ShareLink.as_view(), name='api-v2.1-share-link'),
    url(r'^api/v2.1/upload-links/$', UploadLinks.as_view(), name='api-v2.1-upload-links'),
    url(r'^api/v2.1/upload-link/(?P<token>[a-f0-9]{10})/$', UploadLink.as_view(), name='api-v2.1-upload-link'),
    url(r'^api/v2.1/repos/(?P<repo_id>[-0-9a-f]{36})/file/$', FileView.as_view(), name='api-v2.1-file-view'),
    url(r'^api/v2.1/repos/(?P<repo_id>[-0-9a-f]{36})/dirents/download-link/$', DirentsDownloadLinkView.as_view(), name='api-v2.1-dirents-download-link-view'),
    url(r'^api/v2.1/repos/(?P<repo_id>[-0-9a-f]{36})/dir/$', DirView.as_view(), name='api-v2.1-dir-view'),
    url(r'^api/v2.1/repos/(?P<repo_id>[-0-9a-f]{36})/set-password/$', RepoSetPassword.as_view(), name="api-v2.1-repo-set-password"),
    url(r'^api/v2.1/admin/sysinfo/$', SysInfo.as_view(), name='api-v2.1-sysinfo'),
    url(r'^api/v2.1/admin/devices/$', AdminDevices.as_view(), name='api-v2.1-admin-devices'),
    url(r'^api/v2.1/admin/device-errors/$', AdminDeviceErrors.as_view(), name='api-v2.1-admin-device-errors'),

    (r'^avatar/', include('seahub.avatar.urls')),
예제 #2
0
파일: urls.py 프로젝트: mrakob/seahub
    ## ajax lib
    url(r'^ajax/lib/(?P<repo_id>[-0-9a-f]{36})/dir/$',
        list_lib_dir,
        name="list_lib_dir"),
    url(r'^ajax/unset-inner-pub-repo/(?P<repo_id>[-0-9a-f]{36})/$',
        ajax_unset_inner_pub_repo,
        name='ajax_unset_inner_pub_repo'),

    ### Apps ###
    (r'^api2/', include('seahub.api2.urls')),
    url(r'^api/v2.1/groups/$', Groups.as_view(), name='api-v2.1-groups'),
    url(r'^api/v2.1/groups/(?P<group_id>\d+)/$',
        Group.as_view(),
        name='api-v2.1-group'),
    url(r'^api/v2.1/groups/(?P<group_id>\d+)/members/$',
        GroupMembers.as_view(),
        name='api-v2.1-group-members'),
    url(r'^api/v2.1/groups/(?P<group_id>\d+)/members/bulk/$',
        GroupMembersBulk.as_view(),
        name='api-v2.1-group-members-bulk'),
    url(r'^api/v2.1/groups/(?P<group_id>\d+)/members/(?P<email>[^/]+)/$',
        GroupMember.as_view(),
        name='api-v2.1-group-member'),
    url(r'^api/v2.1/share-links/$',
        ShareLinks.as_view(),
        name='api-v2.1-share-links'),
    url(r'^api/v2.1/share-link/(?P<token>[a-f0-9]{10})/$',
        ShareLink.as_view(),
        name='api-v2.1-share-link'),
    url(r'^api/v2.1/upload-links/$',
        UploadLinks.as_view(),
예제 #3
0
    url(r'^ajax/(?P<repo_id>[-0-9a-f]{36})/repo-dir/recycle/more/$', ajax_repo_dir_recycle_more, name='ajax_repo_dir_recycle_more'),

    url(r'^_templates/(?P<template>.*)$', underscore_template, name="underscore_template"),

    ## ajax lib
    url(r'^ajax/lib/(?P<repo_id>[-0-9a-f]{36})/dir/$', list_lib_dir, name="list_lib_dir"),

    url(r'^ajax/unset-inner-pub-repo/(?P<repo_id>[-0-9a-f]{36})/$', ajax_unset_inner_pub_repo, name='ajax_unset_inner_pub_repo'),


    ### Apps ###
    (r'^api2/', include('seahub.api2.urls')),
    url(r'^api/v2.1/groups/$', Groups.as_view(), name='api-v2.1-groups'),
    url(r'^api/v2.1/groups/(?P<group_id>\d+)/$', Group.as_view(), name='api-v2.1-group'),
    url(r'^api/v2.1/groups/(?P<group_id>\d+)/members/$', GroupMembers.as_view(), name='api-v2.1-group-members'),
    url(r'^api/v2.1/groups/(?P<group_id>\d+)/members/bulk/$', GroupMembersBulk.as_view(), name='api-v2.1-group-members-bulk'),
    url(r'^api/v2.1/groups/(?P<group_id>\d+)/members/(?P<email>[^/]+)/$', GroupMember.as_view(), name='api-v2.1-group-member'),
    url(r'^api/v2.1/share-links/$', ShareLinks.as_view(), name='api-v2.1-share-links'),
    url(r'^api/v2.1/share-links/(?P<token>[a-f0-9]{10})/$', ShareLink.as_view(), name='api-v2.1-share-link'),
    url(r'^api/v2.1/upload-links/$', UploadLinks.as_view(), name='api-v2.1-upload-links'),
    url(r'^api/v2.1/upload-links/(?P<token>[a-f0-9]{10})/$', UploadLink.as_view(), name='api-v2.1-upload-link'),
    url(r'^api/v2.1/repos/(?P<repo_id>[-0-9a-f]{36})/file/$', FileView.as_view(), name='api-v2.1-file-view'),
    url(r'^api/v2.1/repos/(?P<repo_id>[-0-9a-f]{36})/dirents/download-link/$', DirentsDownloadLinkView.as_view(), name='api-v2.1-dirents-download-link-view'),
    url(r'^api/v2.1/repos/(?P<repo_id>[-0-9a-f]{36})/dir/$', DirView.as_view(), name='api-v2.1-dir-view'),
    url(r'^api/v2.1/repos/(?P<repo_id>[-0-9a-f]{36})/set-password/$', RepoSetPassword.as_view(), name="api-v2.1-repo-set-password"),
    url(r'^api/v2.1/admin/sysinfo/$', SysInfo.as_view(), name='api-v2.1-sysinfo'),
    url(r'^api/v2.1/admin/devices/$', AdminDevices.as_view(), name='api-v2.1-admin-devices'),
    url(r'^api/v2.1/admin/device-errors/$', AdminDeviceErrors.as_view(), name='api-v2.1-admin-device-errors'),

    (r'^avatar/', include('seahub.avatar.urls')),
예제 #4
0
     set_group_folder_perm,
     name="set_group_folder_perm",
 ),
 url(
     r"^ajax/(?P<repo_id>[-0-9a-f]{36})/repo-dir/recycle/more/$",
     ajax_repo_dir_recycle_more,
     name="ajax_repo_dir_recycle_more",
 ),
 url(r"^_templates/(?P<template>.*)$", underscore_template, name="underscore_template"),
 ## ajax lib
 url(r"^ajax/lib/(?P<repo_id>[-0-9a-f]{36})/dir/$", list_lib_dir, name="list_lib_dir"),
 ### Apps ###
 (r"^api2/", include("seahub.api2.urls")),
 url(r"^api/v2.1/groups/$", Groups.as_view(), name="api-v2.1-groups"),
 url(r"^api/v2.1/groups/(?P<group_id>\d+)/$", Group.as_view(), name="api-v2.1-group"),
 url(r"^api/v2.1/groups/(?P<group_id>\d+)/members/$", GroupMembers.as_view(), name="api-v2.1-group-members"),
 url(
     r"^api/v2.1/groups/(?P<group_id>\d+)/members/bulk/$",
     GroupMembersBulk.as_view(),
     name="api-v2.1-group-members-bulk",
 ),
 url(
     r"^api/v2.1/groups/(?P<group_id>\d+)/members/(?P<email>[^/]+)/$",
     GroupMember.as_view(),
     name="api-v2.1-group-member",
 ),
 url(r"^api/v2.1/shared-folders/$", SharedFolders.as_view(), name="api-v2.1-shared-folders"),
 url(r"^api/v2.1/shared-repos/$", SharedRepos.as_view(), name="api-v2.1-shared-repos"),
 url(r"^api/v2.1/shared-repos/(?P<repo_id>[-0-9a-f]{36})/$", SharedRepo.as_view(), name="api-v2.1-shared-repo"),
 url(r"^api/v2.1/share-links/$", ShareLinks.as_view(), name="api-v2.1-share-links"),
 url(r"^api/v2.1/share-links/(?P<token>[a-f0-9]{10})/$", ShareLink.as_view(), name="api-v2.1-share-link"),