File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ export const addUserFriendByName = async (req, res) => {
128
128
}
129
129
} ;
130
130
131
- export const removeUserFriend = async ( req , res ) => {
131
+ export const removeUserFriendById = async ( req , res ) => {
132
132
const { userId } = req . params ;
133
133
const { friendId } = req . body ;
134
134
Original file line number Diff line number Diff line change @@ -4,13 +4,13 @@ import {
4
4
getUserById ,
5
5
getUserByEmailOrUsername ,
6
6
addUserFriendById ,
7
- removeUserFriend ,
7
+ removeUserFriendById ,
8
8
getUserMessages ,
9
9
deleteUser ,
10
10
toggleNotifyFriends ,
11
11
updateUserProfile ,
12
12
addUserFriendByName ,
13
- removeUserFriendByName
13
+ removeUserFriendByName ,
14
14
} from "../controllers/user.js" ;
15
15
16
16
const router = express . Router ( ) ;
@@ -26,7 +26,7 @@ router.put("/:userId/friends_name", addUserFriendByName);
26
26
router . put ( "/:userId/toggle-notify-friends" , toggleNotifyFriends ) ;
27
27
router . put ( "/:userId/update-profile" , updateUserProfile ) ;
28
28
29
- router . delete ( "/:userId/friends" , removeUserFriend ) ;
29
+ router . delete ( "/:userId/friends" , removeUserFriendById ) ;
30
30
router . delete ( "/:userId/friends_name" , removeUserFriendByName ) ;
31
31
router . delete ( "/:userId" , deleteUser ) ;
32
32
You can’t perform that action at this time.
0 commit comments