2024-03-05 10:20:36 +00:00

14 lines
381 B
JavaScript
Executable File

import getConnectedUsersFollowing from "../services/getConnectedUsersFollowing"
export default {
method: "GET",
route: "/connected/followers",
middlewares: ["withAuthentication"],
fn: async (req, res) => {
const users = await getConnectedUsersFollowing({
from_user_id: req.user._id.toString(),
})
return res.json(users)
}
}