Skip to content

Commit 7c2393b

Browse files
committed
Day 9: Added urls for the Blocking,Mutting,close friend and user setting code
1 parent 5943bd7 commit 7c2393b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

api/urls.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,19 @@
22

33
from api.views import (
44
AssignUserPermissionView,
5+
BlockUserView,
6+
CloseFriendView,
57
DeleteAccountView,
68
FollowActionView,
79
FollowersView,
810
FollowingView,
911
FollowRequestRespondView,
1012
LoginView,
1113
LogoutView,
14+
MuteUserView,
1215
ProfileView,
1316
RegisterView,
17+
UserSettingsView,
1418
)
1519

1620
urlpatterns = [
@@ -38,6 +42,10 @@
3842
FollowRequestRespondView.as_view(),
3943
name="follow-request-response",
4044
),
45+
path("block/<int:user_id>/", BlockUserView.as_view()),
46+
path("mute/<int:user_id>/", MuteUserView.as_view()),
47+
path("close-friends/<int:user_id>/", CloseFriendView.as_view()),
48+
path("settings/", UserSettingsView.as_view()),
4149
path("logout/", LogoutView.as_view(), name="logout"),
4250
path("delete-account/", DeleteAccountView.as_view(), name="delete-account"),
4351
]

0 commit comments

Comments
 (0)