<reponame>weridolin/tianji-plan<filename>TianJiPlanBackend/authentication/v1/urls.py
'''
Description: 
email: <EMAIL>
Author: lhj
software: vscode
Date: 2021-09-11 14:47:01
platform: windows 10
LastEditors: lhj
LastEditTime: 2021-09-19 14:50:58
'''
from rest_framework import routers
from django.urls import path,re_path
from .api import UserProfileApis,AuthApis
from rest_framework_simplejwt.views import TokenObtainPairView,TokenRefreshView
from authentication.v1.serializers import CustomTokenObtainPairSerialier,CustomTokenObtainPairView

router = routers.SimpleRouter(trailing_slash=False)
router.register("user",viewset=UserProfileApis,basename="user")
router.register("auth",viewset=AuthApis,basename="auth")
urlpatterns = [
    # path(r"auth/",AuthApis.as_view(),name="user-profile-operations"),
    path('token/', CustomTokenObtainPairView.as_view(), name='token_obtain_pair'),
    path('token/refresh', TokenRefreshView.as_view(), name='token_refresh'),
]
urlpatterns += router.urls

'''
Description: 
email: <EMAIL>
Author: lhj
software: vscode
Date: 2021-09-11 14:47:01
platform: windows 10
LastEditors: lhj
LastEditTime: 2021-09-19 14:50:58
'''
from rest_framework import routers
from django.urls import path,re_path
from .api import UserProfileApis,AuthApis
from rest_framework_simplejwt.views import TokenObtainPairView,TokenRefreshView
from authentication.v1.serializers import CustomTokenObtainPairSerialier,CustomTokenObtainPairView

router = routers.SimpleRouter(trailing_slash=False)
router.register("user",viewset=UserProfileApis,basename="user")
router.register("auth",viewset=AuthApis,basename="auth")
urlpatterns = [
    # path(r"auth/",AuthApis.as_view(),name="user-profile-operations"),
    path('token/', CustomTokenObtainPairView.as_view(), name='token_obtain_pair'),
    path('token/refresh', TokenRefreshView.as_view(), name='token_refresh'),
]
urlpatterns += router.urls
Description:  email: <EMAIL> Author: lhj software: vscode Date: 2021-09-11 14:47:01 platform: windows 10 LastEditors: lhj LastEditTime: 2021-09-19 14:50:58 # path(r"auth/",AuthApis.as_view(),name="user-profile-operations"),