Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Rolf Erik Sesseng Aas
tdt4242-base
Commits
2ca08226
Commit
2ca08226
authored
Apr 19, 2021
by
KreizerHgz
Browse files
CS 72 refactored (dupe import)
parent
5e5faf59
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/secfit/diets/urls.py
View file @
2ca08226
...
...
@@ -5,7 +5,6 @@ from rest_framework_simplejwt.views import (
TokenObtainPairView
,
TokenRefreshView
,
)
from
rest_framework.urlpatterns
import
format_suffix_patterns
# This is a bit messy and will need to change
urlpatterns
=
format_suffix_patterns
(
...
...
@@ -56,7 +55,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"
),
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment