mirror of
https://github.com/ramvignesh-b/pi-ku.git
synced 2026-05-04 15:56:56 +00:00
19 lines
713 B
Python
19 lines
713 B
Python
from django.urls import path
|
|
from rest_framework_simplejwt.views import TokenObtainPairView, TokenRefreshView
|
|
|
|
from users.views import ActivationView
|
|
|
|
from .views import MeView, RegisterView
|
|
|
|
urlpatterns = [
|
|
path("register/", RegisterView.as_view(), name="register"),
|
|
# Login and get access and refresh tokens
|
|
path("login/", TokenObtainPairView.as_view(), name="token_obtain_pair"),
|
|
# Get a new access token using a refresh token
|
|
path("refresh/", TokenRefreshView.as_view(), name="token_refresh"),
|
|
# Get current user info
|
|
path("me/", MeView.as_view(), name="me"),
|
|
# Activate user account
|
|
path("activate/<str:uidb64>/<str:token>/", ActivationView.as_view(), name="activate"),
|
|
]
|