From 328c9150228156c04d1045469c7dbcd7b5f4fedf Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Mon, 2 May 2022 17:43:39 -0700 Subject: admin auth and manage page working for initial pass through --- routes/follow.go | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'routes/follow.go') 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) } -- cgit v1.2.3