aboutsummaryrefslogtreecommitdiff
path: root/routes/follow.go
diff options
context:
space:
mode:
Diffstat (limited to 'routes/follow.go')
-rw-r--r--routes/follow.go17
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)
}