mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-12 13:31:56 +00:00
[Update] 修改authentication目录结构
This commit is contained in:
@@ -5,6 +5,8 @@ from __future__ import absolute_import
|
||||
|
||||
from django.urls import path
|
||||
from rest_framework_bulk.routes import BulkRouter
|
||||
|
||||
from authentication import api as auth_api
|
||||
from .. import api
|
||||
|
||||
app_name = 'users'
|
||||
@@ -15,6 +17,11 @@ router.register(r'groups', api.UserGroupViewSet, 'user-group')
|
||||
|
||||
|
||||
urlpatterns = [
|
||||
path('connection-token/', auth_api.UserConnectionTokenApi.as_view(),
|
||||
name='connection-token'),
|
||||
path('auth/', auth_api.UserAuthApi.as_view(), name='user-auth'),
|
||||
path('otp/auth/', auth_api.UserOtpAuthApi.as_view(), name='user-otp-auth'),
|
||||
|
||||
path('profile/', api.UserProfileApi.as_view(), name='user-profile'),
|
||||
path('otp/reset/', api.UserResetOTPApi.as_view(), name='my-otp-reset'),
|
||||
path('users/<uuid:pk>/otp/reset/', api.UserResetOTPApi.as_view(), name='user-reset-otp'),
|
||||
|
Reference in New Issue
Block a user