123456789101112131415 |
- from django.conf.urls import url
- from rest_framework_jwt.views import obtain_jwt_token
- from rest_framework_jwt.views import refresh_jwt_token
- from . import views
- app_name = 'users'
- urlpatterns = [
- # url(r'^authorizations/$',obtain_jwt_token),#用户登录操作
- url(r'^authorizations/$',views.LoginView.as_view(),name="LoginView"),#用户登录操作
- url(r'^authorizationsrefresh/', refresh_jwt_token,name="refresh_jwt_token"),#刷新token
- url(r'^logininformation/$',views.LoginInformation.as_view(),name="LoginInformation"), # 获取用户信息
- # url(r'^register/$',views.RegisterView.as_view()), #用户注册
- # url(r'^login/$',views.Login.as_view()), # 渲染登录界面
- # url(r'^logininformation/$',views.LoginInformation.as_view()), # 获取用户信息
- # url(r'^logout/$',views.Logout.as_view()), # 退出登录
- ]
|