Beispiel #1
0
}

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^admin/django-rq/', include('django_rq.urls')),
    url(r'^accounts/social/(?P<provider>\w+)/$', social_login_view, name="social-login-redirect"),
    url(r'^accounts/coinbase/login/callback/$', coinbase_connect_callback, name="coinbase-connect-callback"),
    url(r'^accounts/slack/connect/callback/$', slack_connect_callback, name="slack-connect-callback"),
    url(r'^accounts/github/connect/callback/$', github_connect_callback, name="github-connect-callback"),
    url(r'^accounts/exact/connect/callback/$', exact_connect_callback, name="exact-connect-callback"),
    url(r'^accounts/', include('allauth.urls')),
    url(r'api/', include(router.urls)),
    url(r'^api/auth/register/account-confirm-email/(?P<key>\w+)/$', ConfirmEmailView.as_view(),
        name='account_confirm_email'),
    url(r'^api/auth/register/', include('rest_auth.registration.urls')),
    url(r'^api/auth/verify/', VerifyUserView.as_view(), name='auth-verify'),
    url(r'^api/auth/visitor/', EmailVisitorView.as_view(), name='auth-visitor'),
    url(r'^api/auth/jwt/token/', obtain_jwt_token),
    url(r'^api/auth/jwt/refresh/', refresh_jwt_token),
    url(r'^api/auth/jwt/verify/', verify_jwt_token),
    url(r'^api/oauth/', include('oauth2_provider.urls', namespace='oauth2_provider')),
    url(r'^api/me/account/', AccountInfoView.as_view(), name='account-info'),
    url(r'^api/me/user/', UserDetailsView.as_view(), name='user-info'),
    url(r'^api/me/profile/', ProfileView.as_view(), name='profile-info'),
    url(r'^api/me/company/', CompanyView.as_view(), name='company-info'),
    url(r'^api/me/settings/', UserSettingsView.as_view(), name='user-settings'),
    url(r'^api/me/notification/', NotificationView.as_view(), name='user-notifications'),
    url(r'^api/me/app/(?P<provider>\w+)/repos/$', RepoListView.as_view(), name="repo-list"),
    url(r'^api/me/app/(?P<provider>\w+)/issues/$', IssueListView.as_view(), name="issue-list"),
    url(r'^api/me/app/slack/$', SlackIntegrationView.as_view(), name="slack-app"),
    url(r'^api/me/app/slack/(?P<resource>\w+)/$', SlackIntegrationView.as_view(), name="slack-app-resource"),
Beispiel #2
0
 url(r'^accounts/slack/connect/callback/$',
     slack_connect_callback,
     name="slack-connect-callback"),
 url(r'^accounts/github/connect/callback/$',
     github_connect_callback,
     name="github-connect-callback"),
 url(r'^accounts/exact/connect/callback/$',
     exact_connect_callback,
     name="exact-connect-callback"),
 url(r'^accounts/', include('allauth.urls')),
 url(r'api/', include(router.urls)),
 url(r'^api/auth/register/account-confirm-email/(?P<key>\w+)/$',
     ConfirmEmailView.as_view(),
     name='account_confirm_email'),
 url(r'^api/auth/register/', include('rest_auth.registration.urls')),
 url(r'^api/auth/verify/', VerifyUserView.as_view(), name='auth-verify'),
 url(r'^api/auth/visitor/', EmailVisitorView.as_view(),
     name='auth-visitor'),
 url(r'^api/auth/jwt/token/', obtain_jwt_token),
 url(r'^api/auth/jwt/refresh/', refresh_jwt_token),
 url(r'^api/auth/jwt/verify/', verify_jwt_token),
 url(r'^api/oauth/',
     include('oauth2_provider.urls', namespace='oauth2_provider')),
 url(r'^api/me/account/', AccountInfoView.as_view(), name='account-info'),
 url(r'^api/me/user/', UserDetailsView.as_view(), name='user-info'),
 url(r'^api/me/profile/', ProfileView.as_view(), name='profile-info'),
 url(r'^api/me/company/', CompanyView.as_view(), name='company-info'),
 url(r'^api/me/settings/', UserSettingsView.as_view(),
     name='user-settings'),
 url(r'^api/me/notification/',
     NotificationView.as_view(),