diff options
author | FChannel <> | 2022-05-02 17:43:39 -0700 |
---|---|---|
committer | FChannel <> | 2022-06-19 12:53:29 -0700 |
commit | 328c9150228156c04d1045469c7dbcd7b5f4fedf (patch) | |
tree | ae4e281b4e0b6df3c54919756d55bfeff90f0ef0 /routes/follow.go | |
parent | 62edcb3745f414212ee102c13429056f02cf31bd (diff) |
admin auth and manage page working for initial pass through
Diffstat (limited to 'routes/follow.go')
-rw-r--r-- | routes/follow.go | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/routes/follow.go b/routes/follow.go index 2578983..3dbf9cf 100644 --- a/routes/follow.go +++ b/routes/follow.go @@ -1,15 +1,16 @@ package routes -import "github.com/gofiber/fiber/v2" +import ( + "github.com/FChannel0/FChannel-Server/activitypub" + "github.com/FChannel0/FChannel-Server/config" + "github.com/gofiber/fiber/v2" +) -func Following(c *fiber.Ctx) error { - // STUB - - return c.SendString("main following") +func Following(ctx *fiber.Ctx) error { + return activitypub.GetActorFollowing(ctx, config.Domain) } -func Followers(c *fiber.Ctx) error { +func Followers(ctx *fiber.Ctx) error { // STUB - - return c.SendString("main followers") + return activitypub.GetActorFollowers(ctx, config.Domain) } |