All checks were successful
Build And Test / build-and-push (push) Successful in 2m46s
15 lines
813 B
Python
15 lines
813 B
Python
from django.urls import path
|
|
from .views import RegisterView, MeView, CustomTokenObtainPairView, SSHKeyUploadView, SSHKeyInfoView
|
|
from rest_framework_simplejwt.views import TokenObtainPairView, TokenRefreshView, TokenVerifyView
|
|
|
|
urlpatterns = [
|
|
path('register/', RegisterView.as_view(), name='register'),
|
|
# path('login/', TokenObtainPairView.as_view(), name='token_obtain_pair'),
|
|
path('login/', CustomTokenObtainPairView.as_view(), name='token_obtain_pair'),
|
|
path('token/refresh/', TokenRefreshView.as_view(), name='token_refresh'),
|
|
path('verify/', TokenVerifyView.as_view(), name='token_verify'),
|
|
path('me/', MeView.as_view(), name='me'),
|
|
path("ssh-key/", SSHKeyUploadView.as_view(), name="ssh_key_upload"),
|
|
path("ssh-key/info/", SSHKeyInfoView.as_view(), name="ssh_key_info"),
|
|
]
|