Skip to content
Snippets Groups Projects
Commit 31b4bf83 authored by KreizerHgz's avatar KreizerHgz
Browse files

CS 73 and 74 refactored (comments)

parent 2ca08226
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,6 @@ from rest_framework_simplejwt.views import (
TokenRefreshView,
)
# This is a bit messy and will need to change
urlpatterns = format_suffix_patterns(
[
path("", views.api_root),
......
......@@ -6,7 +6,6 @@ from rest_framework_simplejwt.views import (
TokenRefreshView,
)
# This is a bit messy and will need to change
urlpatterns = format_suffix_patterns(
[
path("", views.api_root),
......@@ -45,7 +44,8 @@ urlpatterns = format_suffix_patterns(
path("", include("users.urls")),
path("", include("comments.urls")),
path("api/auth/", include("rest_framework.urls")),
path("api/token/", TokenObtainPairView.as_view(), name="token_obtain_pair"),
path("api/token/", TokenObtainPairView.as_view(),
name="token_obtain_pair"),
path("api/token/refresh/", TokenRefreshView.as_view(), name="token_refresh"),
path("api/remember_me/", views.RememberMe.as_view(), name="remember_me"),
]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment