mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-11 19:44:15 +00:00
14 lines
381 B
JavaScript
Executable File
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)
|
|
}
|
|
} |