From 961aa02eace193bc5f9dae845399eebb5d4281c4 Mon Sep 17 00:00:00 2001 From: Patrick Britton Date: Tue, 17 Feb 2026 10:26:25 -0600 Subject: [PATCH] feat: Register follow system routes in backend main.go --- go-backend/cmd/api/main.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/go-backend/cmd/api/main.go b/go-backend/cmd/api/main.go index be3e9c0..137c9a2 100644 --- a/go-backend/cmd/api/main.go +++ b/go-backend/cmd/api/main.go @@ -394,6 +394,16 @@ func main() { authorized.POST("/hashtags/:name/follow", discoverHandler.FollowHashtag) authorized.DELETE("/hashtags/:name/follow", discoverHandler.UnfollowHashtag) + // Follow System + followHandler := handlers.NewFollowHandler(dbPool) + authorized.POST("/users/:userId/follow", followHandler.FollowUser) + authorized.POST("/users/:userId/unfollow", followHandler.UnfollowUser) + authorized.GET("/users/:userId/is-following", followHandler.IsFollowing) + authorized.GET("/users/:userId/mutual-followers", followHandler.GetMutualFollowers) + authorized.GET("/users/suggested", followHandler.GetSuggestedUsers) + authorized.GET("/users/:userId/followers", followHandler.GetFollowers) + authorized.GET("/users/:userId/following", followHandler.GetFollowing) + // Notifications notificationHandler := handlers.NewNotificationHandler(notifRepo, notificationService) authorized.GET("/notifications", notificationHandler.GetNotifications)