chai-backend
chai-backend copied to clipboard
Using params
Hey Hitesh,
I need some info about in some routes we are using subsciber or userId as params, as we take care or extract from jwt then why we are getting ids in params in the form of userId. Is this intentionally or the sake of easiness.
Routes are following:
- router.route("/user/:userId").get(getUserTweets);
- router.route("/u/:subscriberId").get(getUserChannelSubscribers);
- router.route("/user/:userId").get(getUserPlaylists);