A community based topic aggregation platform built on atproto
1package routes 2 3import ( 4 "Coves/internal/api/handlers/communityFeed" 5 "Coves/internal/core/communityFeeds" 6 7 "github.com/go-chi/chi/v5" 8) 9 10// RegisterCommunityFeedRoutes registers feed-related XRPC endpoints 11func RegisterCommunityFeedRoutes( 12 r chi.Router, 13 feedService communityFeeds.Service, 14) { 15 // Create handlers 16 getCommunityHandler := communityFeed.NewGetCommunityHandler(feedService) 17 18 // GET /xrpc/social.coves.communityFeed.getCommunity 19 // Public endpoint - basic community sorting only for Alpha 20 // TODO(feed-generator): Add OptionalAuth middleware when implementing viewer-specific state 21 // (blocks, upvotes, saves, etc.) in feed generator skeleton 22 r.Get("/xrpc/social.coves.communityFeed.getCommunity", getCommunityHandler.HandleGetCommunity) 23}