from django.urls import path from user_profile.views import Friend_Request_Recieved_Slug_View from user_profile.views import Friend_Requests_Recieved_View from user_profile.views import Friend_Request_Sent_Slug_View from user_profile.views import Friend_Requests_Sent_View from user_profile.views import My_Friends_View from user_profile.views import My_Profile_View urlpatterns = [ path("", My_Profile_View.as_view({"get": "my_profile", "put": "update", "patch": "update_partial"}), name="my-user-profile"), path("friends/", My_Friends_View.as_view({"get": "list"}), name="my-friends"), path("friend_requests/", Friend_Requests_Recieved_View.as_view({"get": "list"}), name="my-recieved-friend-requests"), path("friend_requests//", Friend_Request_Recieved_Slug_View.as_view({"delete": "deny", "post": "accept"}), name="my-recieved-friend-request-slug"), path("friend_requests/sent/", Friend_Requests_Sent_View.as_view({"get": "list"}), name="my-sent-friend-requests"), path("friend_requests/sent//", Friend_Request_Sent_Slug_View.as_view({"delete": "destroy"}), name="my-send-friend-request-delete") ]