Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
library-app-django
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ilham Maulana
library-app-django
Commits
d37811a4
Commit
d37811a4
authored
Jul 21, 2024
by
Ilham Maulana
💻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: simple jwt logout and permissions
parent
7ba4ab25
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
urls.py
config/urls.py
+1
-3
No files found.
config/urls.py
View file @
d37811a4
...
...
@@ -24,7 +24,6 @@ from django.contrib.auth.views import (
PasswordResetCompleteView
,
)
from
rest_framework_simplejwt.views
import
(
TokenObtainPairView
,
TokenRefreshView
,
)
...
...
@@ -46,8 +45,6 @@ urlpatterns = [
path
(
"upcoming-loans/"
,
UpcomingLoanView
.
as_view
(),
name
=
"upcoming_loans"
),
path
(
"overdued-loans/"
,
OverduedLoanView
.
as_view
(),
name
=
"overdued_loans"
),
# auth
path
(
"api/token/"
,
TokenObtainPairView
.
as_view
(),
name
=
"token_obtain_pair"
),
path
(
"api/token/refresh/"
,
TokenRefreshView
.
as_view
(),
name
=
"token_refresh"
),
path
(
"auth/login/"
,
LibrarianLoginView
.
as_view
(),
name
=
"librarian_login"
),
path
(
"auth/logout/"
,
LibrarianLogoutView
.
as_view
(),
name
=
"librarian_logout"
),
path
(
"auth/sign-up/"
,
LibrarianSignUpView
.
as_view
(),
name
=
"librarian_logout"
),
...
...
@@ -72,6 +69,7 @@ urlpatterns = [
name
=
"password_reset_complete"
,
),
# api
path
(
"api/token/refresh/"
,
TokenRefreshView
.
as_view
(),
name
=
"token_refresh"
),
path
(
"api/v1/"
,
include
(
"api.urls"
),
name
=
"API_V1"
),
# 3rd party
path
(
"api-auth/"
,
include
(
"rest_framework.urls"
),
name
=
"api_auth"
),
...
...
Write
Preview
Markdown
is supported
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