diff --git a/src/routes/subscription.routes.js b/src/routes/subscription.routes.js index bdfd2d29..2b9a0d4f 100644 --- a/src/routes/subscription.routes.js +++ b/src/routes/subscription.routes.js @@ -11,9 +11,9 @@ router.use(verifyJWT); // Apply verifyJWT middleware to all routes in this file router .route("/c/:channelId") - .get(getSubscribedChannels) + .get(getUserChannelSubscribers) .post(toggleSubscription); -router.route("/u/:subscriberId").get(getUserChannelSubscribers); +router.route("/u/:subscriberId").get(getSubscribedChannels); -export default router \ No newline at end of file +export default router