Updated route endpoint

This commit is contained in:
Hackntosh 2023-09-07 09:41:19 -03:00
parent a075da4aba
commit 02e4075ab2

View file

@ -17,7 +17,7 @@ usersRouter.get('/search', user.searchUser)
// POST // POST
usersRouter.post('/auth', user.auth) usersRouter.post('/auth', user.auth)
usersRouter.post('/delete', authenticated, user.delete) usersRouter.post('/delete', authenticated, user.delete)
usersRouter.post('/fetch', authenticated, user.fetchUser) usersRouter.post('/me', authenticated, user.fetchUser)
usersRouter.post('/follow-user', authenticated, user.follow) usersRouter.post('/follow-user', authenticated, user.follow)
usersRouter.post('/like-comment', authenticated, user.likeComment) usersRouter.post('/like-comment', authenticated, user.likeComment)
usersRouter.post('/like-post', authenticated, user.likePost) usersRouter.post('/like-post', authenticated, user.likePost)