Skip to content

Commit

Permalink
Add token verify to backend
Browse files Browse the repository at this point in the history
  • Loading branch information
n8kim1 committed Nov 14, 2022
1 parent a1b5d44 commit 10e6eb5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion backend/siarnaq/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@
from django.contrib import admin
from django.urls import include, path
from drf_spectacular.views import SpectacularAPIView, SpectacularSwaggerView
from rest_framework_simplejwt.views import TokenObtainPairView, TokenRefreshView
from rest_framework_simplejwt.views import (
TokenObtainPairView,
TokenRefreshView,
TokenVerifyView,
)

urlpatterns = [
path("admin/", admin.site.urls),
Expand All @@ -26,6 +30,7 @@
path("api/team/", include("siarnaq.api.teams.urls")),
path("api/token/", TokenObtainPairView.as_view(), name="token_obtain_pair"),
path("api/token/refresh/", TokenRefreshView.as_view(), name="token_refresh"),
path("api/token/verify/", TokenVerifyView.as_view(), name="token_verify"),
# Schema:
path("api/specs/", SpectacularAPIView.as_view(), name="specs"),
path(
Expand Down

0 comments on commit 10e6eb5

Please sign in to comment.