aboutsummaryrefslogtreecommitdiff
path: root/routes/follow.go
blob: f61e405099482da19b1d20724adc425f03d12caf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package routes

import (
	"github.com/FChannel0/FChannel-Server/activitypub"
	"github.com/FChannel0/FChannel-Server/config"
	"github.com/gofiber/fiber/v2"
)

func Following(ctx *fiber.Ctx) error {
	actor, _ := activitypub.GetActorFromDB(config.Domain)
	return actor.GetFollowingResp(ctx)
}

func Followers(ctx *fiber.Ctx) error {
	actor, _ := activitypub.GetActorFromDB(config.Domain)
	return actor.GetFollowersResp(ctx)
}