-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Bobur Yusupov
committed
Jul 4, 2023
1 parent
23d0c25
commit a31894c
Showing
5 changed files
with
18 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
from django.urls import path | ||
|
||
from rest_framework.routers import DefaultRouter | ||
from rest_framework.authtoken.views import obtain_auth_token | ||
|
||
from accounts.views.user_auth_view import ( | ||
CreateUserView, | ||
CreateTokenView, | ||
ManageUserView, | ||
UserLoginView, | ||
) | ||
|
||
app_name = "accounts" | ||
|
||
urlpatterns = [ | ||
path("create/", CreateUserView.as_view(), name="create"), | ||
path("signup/", CreateUserView.as_view(), name="signup"), | ||
path("token/", CreateTokenView.as_view(), name="token"), | ||
path("profile/", ManageUserView.as_view(), name="authenticated-user-profile") | ||
path("profile/", ManageUserView.as_view(), name="profile"), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,5 +30,5 @@ | |
path("api/docs/", | ||
SpectacularSwaggerView.as_view(url_name="api-schema"), | ||
name="api-docs" | ||
) | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters