from django.urls import path from .views import LoginView from .views import RenewView from .views import LogoutView from .views import LogoutAllView from .views import RegisterView from .views import ChangePasswordView from .views import AccountInfoView urlpatterns = [ path("create-token/", LoginView.as_view(), name="create_token"), path("refresh-token/", RenewView.as_view(), name="refresh-token"), path("account-info/", AccountInfoView.as_view({"get": "user_info"}), name="account-info"), path("change-password/", ChangePasswordView.as_view({"post": "change_password"}), name="change-password"), path("signup/", RegisterView.as_view(), name="signup"), path("logout/", LogoutView.as_view(), name="logout"), path("logout-all/", LogoutAllView.as_view(), name="logout-all") ]