Some checks failed
Build and Push to Docker Hub / build-test-push (push) Failing after 1m55s
65 lines
1.9 KiB
Python
Executable File
65 lines
1.9 KiB
Python
Executable File
"""
|
|
Accounts app urls
|
|
"""
|
|
|
|
from django.urls import path
|
|
from rest_framework_simplejwt import views as jwt_views
|
|
|
|
from core.apps.accounts import views
|
|
from core.http.views.user import UserAvatarUpdateView, UserUpdateView
|
|
|
|
urlpatterns = [
|
|
path(
|
|
"auth/token/",
|
|
jwt_views.TokenObtainPairView.as_view(),
|
|
name="token_obtain_pair",
|
|
), # Login view # noqa
|
|
path(
|
|
"auth/token/refresh/",
|
|
jwt_views.TokenRefreshView.as_view(),
|
|
name="token_refresh",
|
|
), # Refresh token view # noqa
|
|
path(
|
|
"auth/token/verify/",
|
|
jwt_views.TokenVerifyView.as_view(),
|
|
name="token_verify",
|
|
), # Verify token # noqa
|
|
# path(
|
|
# "auth/register/", views.RegisterView.as_view(), name="register"
|
|
# ), # Register # noqa
|
|
path(
|
|
"auth/confirm/", views.ConfirmView.as_view(), name="confirm"
|
|
), # Confirm Otp code view # noqa
|
|
path(
|
|
"auth/reset/password/",
|
|
views.ResetPasswordView.as_view(),
|
|
name="reset-password",
|
|
), # Reset password step 1 # noqa
|
|
path(
|
|
"auth/confirm/reset/",
|
|
views.ResetConfirmationCodeView.as_view(),
|
|
name="reset-confirmation-code",
|
|
), # noqa
|
|
# Reset password step 2
|
|
path(
|
|
"auth/resend/", views.ResendView.as_view(), name="resend"
|
|
), # resend otp code # noqa
|
|
path(
|
|
"auth/me/", views.MeView.as_view(), name="me"
|
|
), # get user information # noqa
|
|
path(
|
|
"change/password/",
|
|
views.ChangePasswordView.as_view(),
|
|
name="avatar-update",
|
|
), # chamge user password # noqa
|
|
# Update user information
|
|
path(
|
|
"auth/update/", UserUpdateView.as_view(), name="update"
|
|
), # update user information # noqa
|
|
path(
|
|
"auth/avatar/update/",
|
|
UserAvatarUpdateView.as_view(),
|
|
name="avatar-update",
|
|
), # update user avatar # noqa
|
|
]
|