chai-backend icon indicating copy to clipboard operation
chai-backend copied to clipboard

Using params

Open kumarmeet opened this issue 10 months ago • 0 comments

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:

  1. router.route("/user/:userId").get(getUserTweets);
  2. router.route("/u/:subscriberId").get(getUserChannelSubscribers);
  3. router.route("/user/:userId").get(getUserPlaylists);

kumarmeet avatar Mar 28 '24 10:03 kumarmeet