mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-20 19:08:21 +00:00
[social auth & notification] Add wechat work notification
This commit is contained in:
24
thirdpart/social_django/urls.py
Normal file
24
thirdpart/social_django/urls.py
Normal file
@@ -0,0 +1,24 @@
|
||||
"""URLs module"""
|
||||
from django.conf import settings
|
||||
from django.conf.urls import url
|
||||
|
||||
from social_core.utils import setting_name
|
||||
from . import views
|
||||
|
||||
|
||||
extra = getattr(settings, setting_name('TRAILING_SLASH'), True) and '/' or ''
|
||||
|
||||
app_name = 'social'
|
||||
|
||||
urlpatterns = [
|
||||
# authentication / association
|
||||
url(r'^login/(?P<backend>[^/]+){0}$'.format(extra), views.auth,
|
||||
name='begin'),
|
||||
url(r'^complete/(?P<backend>[^/]+){0}$'.format(extra), views.complete,
|
||||
name='complete'),
|
||||
# disconnection
|
||||
url(r'^disconnect/(?P<backend>[^/]+){0}$'.format(extra), views.disconnect,
|
||||
name='disconnect'),
|
||||
url(r'^disconnect/(?P<backend>[^/]+)/(?P<association_id>\d+){0}$'
|
||||
.format(extra), views.disconnect, name='disconnect_individual'),
|
||||
]
|
Reference in New Issue
Block a user