Add sso and 2fa api

This commit is contained in:
Chiaki
2017-04-18 15:19:26 +08:00
parent 1a4cb9332e
commit ee05af8e5a
6 changed files with 119 additions and 11 deletions

View File

@@ -3,9 +3,12 @@
from django.conf.urls import url
from ..views.user import UserInfoAPI, UserProfileAPI
from ..views.user import (UserInfoAPI, UserProfileAPI,
SSOAPI, TwoFactorAuthAPI)
urlpatterns = [
url(r"^user", UserInfoAPI.as_view(), name="user_info_api"),
url(r"^profile$", UserProfileAPI.as_view(), name="user_profile_api")
url(r"^user$", UserInfoAPI.as_view(), name="user_info_api"),
url(r"^profile$", UserProfileAPI.as_view(), name="user_profile_api"),
url(r"^sso$", SSOAPI.as_view(), name="sso_api"),
url(r"^two_factor_auth$", TwoFactorAuthAPI.as_view(), name="two_factor_auth_api")
]