Skip to content

Conversation

@manasTiwari-IR
Copy link

This pull request includes changes to the src/routes/subscription.routes.js file to swap the handlers for two routes. The most important changes include:

  • Modified the route /c/:channelId to use the getUserChannelSubscribers handler instead of getSubscribedChannels.
  • Modified the route /u/:subscriberId to use the getSubscribedChannels handler instead of getUserChannelSubscribers.

This ensures the proper controller functions handle the expected requests.
As getUserChannelSubscribers has to return subscriber list of the channel and getSubscribedChannels has to return channel list to which user has subscribed.

Refactored the subscription routes to correctly map getUserChannelSubscribers to /c/:channelId and getSubscribedChannels to /u/:subscriberId. This ensures the proper controller functions handle the expected requests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant