Skip to content

Commit

Permalink
updated routes
Browse files Browse the repository at this point in the history
  • Loading branch information
annayzhang1337 committed Nov 8, 2023
1 parent 055712a commit e5affe7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions server/routes/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ import {
getUserFriends,
getUserById,
getUserByEmailOrUsername,
addUserFriend,
addUserFriendById,
removeUserFriend,
getUserMessages,
deleteUser,
toggleNotifyFriends,
updateUserProfile,
addUserFriendByName
} from "../controllers/user.js";

const router = express.Router();
Expand All @@ -19,7 +20,8 @@ router.get("/:userId", getUserById);
router.get("/:userId/friends", getUserFriends);
router.get("/:userId/messages", getUserMessages);

router.put("/:userId/friends", addUserFriend);
router.put("/:userId/friends", addUserFriendById);
router.put("/:userId/friends_name", addUserFriendByName);
router.put("/:userId/toggle-notify-friends", toggleNotifyFriends);
router.put("/:userId/update-profile", updateUserProfile);

Expand Down

0 comments on commit e5affe7

Please sign in to comment.