-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#168256011 Refactor code to improve the maintainability #59
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
router.get('/profiles/followers', validateToken, followController.listOfFollowers); | ||
// router.get('/profiles/following', validateToken, followController.listOfFollowedUsers); | ||
// router.get('/profiles/followers', validateToken, followController.listOfFollowers); | ||
router.get('/profiles/:followersOrFollowing', validateToken, followController.listOfFollowersOrFollowed); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The previous way was better in the case of routing because the 2 routes are different and therefore should have different methods.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In terms of conventions too. e.g look at twitter
What does this PR do?
Description of Task to be completed?
How should this be manually tested?
Any background context you want to provide?
What are the relevant pivotal tracker stories?
#168256011
Screenshots (if appropriate)