Added updatePassword view, added exception handler, added friends view

This commit is contained in:
ITQ
2024-03-03 18:13:59 +03:00
parent 18f66344bb
commit 20e6e512d2
9 changed files with 169 additions and 57 deletions
+13 -3
View File
@@ -20,17 +20,27 @@ urlpatterns = [
),
path(
"profiles/<str:login>",
api.users.views.ProfileAPIView.as_view(),
api.users.views.ProfilesApiView.as_view(),
name="profiles",
),
path(
"friends/add",
api.users.views.AddFriendAPIView.as_view(),
api.users.views.AddFriendApiView.as_view(),
name="add-friend",
),
path(
"friends/remove",
api.users.views.RemoveFriendAPIView.as_view(),
api.users.views.RemoveFriendApiView.as_view(),
name="remove-friend",
),
path(
"friends",
api.users.views.FriendsListApiView.as_view(),
name="friends-list",
),
path(
"me/updatePassword",
api.users.views.PasswordChangeApiView.as_view(),
name="password-change",
)
]