Beispiel #1
0
    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})/zip-task/$', ZipTaskView.as_view(), name='api-v2.1-zip-task'),
    url(r'^api/v2.1/share-link-zip-task/$', ShareLinkZipTaskView.as_view(), name='api-v2.1-share-link-zip-task'),
    url(r'^api/v2.1/query-zip-progress/$', QueryZipProgressView.as_view(), name='api-v2.1-query-zip-progress'),
    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'),
    url(r'^api/v2.1/invitations/$', InvitationsView.as_view()),
    url(r'^api/v2.1/invitations/(?P<token>[a-f0-9]{32})/$', InvitationView.as_view()),

    url(r'^api/v2.1/admin/libraries/$', AdminLibraries.as_view(), name='api-v2.1-admin-libraries'),
    url(r'^api/v2.1/admin/libraries/(?P<repo_id>[-0-9a-f]{36})/$', AdminLibrary.as_view(), name='api-v2.1-admin-library'),
    url(r'^api/v2.1/admin/libraries/(?P<repo_id>[-0-9a-f]{36})/dirents/$', AdminLibraryDirents.as_view(), name='api-v2.1-admin-library-dirents'),
    url(r'^api/v2.1/admin/groups/$', AdminGroups.as_view(), name='api-v2.1-admin-groups'),
    url(r'^api/v2.1/admin/groups/(?P<group_id>\d+)/$', AdminGroup.as_view(), name='api-v2.1-admin-group'),
    url(r'^api/v2.1/admin/libraries/(?P<repo_id>[-0-9a-f]{36})/dirent/$', AdminLibraryDirent.as_view(), name='api-v2.1-admin-library-dirent'),
    url(r'^api/v2.1/admin/system-library/$', AdminSystemLibrary.as_view(), name='api-v2.1-admin-system-library'),
    url(r'^api/v2.1/admin/trash-libraries/$', AdminTrashLibraries.as_view(), name='api-v2.1-admin-trash-libraries'),
    url(r'^api/v2.1/admin/trash-libraries/(?P<repo_id>[-0-9a-f]{36})/$', AdminTrashLibrary.as_view(), name='api-v2.1-admin-trash-library'),

    (r'^avatar/', include('seahub.avatar.urls')),
    (r'^notification/', include('seahub.notifications.urls')),
    (r'^contacts/', include('seahub.contacts.urls')),
    (r'^group/', include('seahub.group.urls')),
    (r'^message/', include('seahub.message.urls')),
    (r'^options/', include('seahub.options.urls')),
    (r'^profile/', include('seahub.profile.urls')),
    (r'^share/', include('seahub.share.urls')),
    (r'^help/', include('seahub.help.urls')),
Beispiel #2
0
 ),
 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"),
 url(r"^api/v2.1/invitations/$", InvitationsView.as_view()),
 url(r"^api/v2.1/invitations/(?P<token>[a-f0-9]{32})/$", InvitationView.as_view()),
 url(r"^api/v2.1/admin/libraries/$", AdminLibraries.as_view(), name="api-v2.1-admin-libraries"),
 url(
     r"^api/v2.1/admin/libraries/(?P<repo_id>[-0-9a-f]{36})/$", AdminLibrary.as_view(), name="api-v2.1-admin-library"
 ),
 url(
     r"^api/v2.1/admin/libraries/(?P<repo_id>[-0-9a-f]{36})/dirents/$",
     AdminLibraryDirents.as_view(),
     name="api-v2.1-admin-library-dirents",
 ),
 url(r"^api/v2.1/admin/groups/$", AdminGroups.as_view(), name="api-v2.1-admin-groups"),
 url(r"^api/v2.1/admin/groups/(?P<group_id>\d+)/$", AdminGroup.as_view(), name="api-v2.1-admin-group"),
 url(
     r"^api/v2.1/admin/libraries/(?P<repo_id>[-0-9a-f]{36})/dirent/$",
     AdminLibraryDirent.as_view(),
     name="api-v2.1-admin-library-dirent",
 ),
 url(r"^api/v2.1/admin/system-library/$", AdminSystemLibrary.as_view(), name="api-v2.1-admin-system-library"),
 url(r"^api/v2.1/admin/trash-libraries/$", AdminTrashLibraries.as_view(), name="api-v2.1-admin-trash-libraries"),
 url(
     r"^api/v2.1/admin/trash-libraries/(?P<repo_id>[-0-9a-f]{36})/$",
     AdminTrashLibrary.as_view(),
     name="api-v2.1-admin-trash-library",
 ),
 (r"^avatar/", include("seahub.avatar.urls")),
 (r"^notification/", include("seahub.notifications.urls")),
Beispiel #3
0
     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'),
 url(r'^api/v2.1/admin/libraries/$',
     AdminLibraries.as_view(),
     name='api-v2.1-admin-libraries'),
 url(r'^api/v2.1/admin/libraries/(?P<repo_id>[-0-9a-f]{36})/$',
     AdminLibrary.as_view(),
     name='api-v2.1-admin-library'),
 url(r'^api/v2.1/admin/libraries/(?P<repo_id>[-0-9a-f]{36})/dirents/$',
     AdminLibraryDirents.as_view(),
     name='api-v2.1-admin-library-dirents'),
 url(r'^api/v2.1/admin/groups/$',
     AdminGroups.as_view(),
     name='api-v2.1-admin-groups'),
 url(r'^api/v2.1/admin/groups/(?P<group_id>\d+)/$',
     AdminGroup.as_view(),
     name='api-v2.1-admin-group'),
 url(r'^api/v2.1/admin/libraries/(?P<repo_id>[-0-9a-f]{36})/dirent/$',
     AdminLibraryDirent.as_view(),
     name='api-v2.1-admin-library-dirent'),
 url(r'^api/v2.1/admin/system-library/$',
     AdminSystemLibrary.as_view(),
     name='api-v2.1-admin-system-library'),
 url(r'^api/v2.1/admin/trash-libraries/$',
     AdminTrashLibraries.as_view(),
     name='api-v2.1-admin-trash-libraries'),
 url(r'^api/v2.1/admin/trash-libraries/(?P<repo_id>[-0-9a-f]{36})/$',
     AdminTrashLibrary.as_view(),
Beispiel #4
0
    url(r'^api/v2.1/admin/libraries/(?P<repo_id>[-0-9a-f]{36})/dirents/$', AdminLibraryDirents.as_view(), name='api-v2.1-admin-library-dirents'),
    url(r'^api/v2.1/admin/libraries/(?P<repo_id>[-0-9a-f]{36})/dirent/$', AdminLibraryDirent.as_view(), name='api-v2.1-admin-library-dirent'),

    ## admin::system-library
    url(r'^api/v2.1/admin/system-library/$', AdminSystemLibrary.as_view(), name='api-v2.1-admin-system-library'),
    url(r'^api/v2.1/admin/system-library/upload-link/$', AdminSystemLibraryUploadLink.as_view(), name='api-v2.1-admin-system-library-upload-link'),

    ## admin::default-library
    url(r'^api/v2.1/admin/default-library/$', AdminDefaultLibrary.as_view(), name='api-v2.1-admin-default-library'),

    ## admin::trash-libraries
    url(r'^api/v2.1/admin/trash-libraries/$', AdminTrashLibraries.as_view(), name='api-v2.1-admin-trash-libraries'),
    url(r'^api/v2.1/admin/trash-libraries/(?P<repo_id>[-0-9a-f]{36})/$', AdminTrashLibrary.as_view(), name='api-v2.1-admin-trash-library'),

    ## admin::groups
    url(r'^api/v2.1/admin/groups/$', AdminGroups.as_view(), name='api-v2.1-admin-groups'),
    url(r'^api/v2.1/admin/groups/(?P<group_id>\d+)/$', AdminGroup.as_view(), name='api-v2.1-admin-group'),
    url(r'^api/v2.1/admin/groups/(?P<group_id>\d+)/libraries/$', AdminGroupLibraries.as_view(), name='api-v2.1-admin-group-libraries'),
    url(r'^api/v2.1/admin/groups/(?P<group_id>\d+)/libraries/(?P<repo_id>[-0-9a-f]{36})/$', AdminGroupLibrary.as_view(), name='api-v2.1-admin-group-library'),
    url(r'^api/v2.1/admin/groups/(?P<group_id>\d+)/members/$', AdminGroupMembers.as_view(), name='api-v2.1-admin-group-members'),
    url(r'^api/v2.1/admin/groups/(?P<group_id>\d+)/members/(?P<email>[^/]+)/$', AdminGroupMember.as_view(), name='api-v2.1-admin-group-member'),
    url(r'^api/v2.1/admin/groups/(?P<group_id>\d+)/group-owned-libraries/$', AdminGroupOwnedLibraries.as_view(), name='api-v2.1-admin-group-owned-libraries'),
    url(r'^api/v2.1/admin/groups/(?P<group_id>\d+)/group-owned-libraries/(?P<repo_id>[-0-9a-f]{36})/$', AdminGroupOwnedLibrary.as_view(), name='api-v2.1-admin-owned-group-library'),

    ## admin::shares
    url(r'^api/v2.1/admin/shares/$', AdminShares.as_view(), name='api-v2.1-admin-shares'),

    ## admin::admin logs
    url(r'^api/v2.1/admin/admin-logs/$', AdminOperationLogs.as_view(), name='api-v2.1-admin-admin-operation-logs'),
    url(r'^api/v2.1/admin/admin-login-logs/$', AdminLoginLogs.as_view(), name='api-v2.1-admin-admin-login-logs'),