mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-11 03:24:16 +00:00
16 lines
497 B
JavaScript
Executable File
16 lines
497 B
JavaScript
Executable File
import { Endpoint } from "linebridge/dist/server"
|
|
import getConnectedUsersFollowing from "../services/getConnectedUsersFollowing"
|
|
|
|
export default class GetConnectedFollowedUsers extends Endpoint {
|
|
static method = "GET"
|
|
static route = "/connected/following"
|
|
static middlewares = ["withAuthentication"]
|
|
|
|
async fn(req, res) {
|
|
const users = await getConnectedUsersFollowing({
|
|
from_user_id: req.user._id.toString(),
|
|
})
|
|
|
|
return res.json(users)
|
|
}
|
|
} |