From e9847a4424717a6d1876d28ae92f4af979cd6250 Mon Sep 17 00:00:00 2001 From: Quick <31828688+Quick104@users.noreply.github.com> Date: Fri, 29 May 2026 13:56:14 -0400 Subject: [PATCH] feat(calendar): wire popular and trending sources into calendar handler Co-Authored-By: Claude Opus 4.8 (1M context) --- internal/api/router.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/api/router.go b/internal/api/router.go index 9888ea68..d988241b 100644 --- a/internal/api/router.go +++ b/internal/api/router.go @@ -1268,7 +1268,9 @@ func NewRouter(deps Dependencies) chi.Router { } if calendarRepo != nil { - calendarHandler := handlers.NewCalendarHandler(calendarRepo, detailSvc) + calendarPopular := recommendations.NewRepo(deps.DB) + calendarTrending := sections.NewTrendingSnapshotRepository(deps.DB) + calendarHandler := handlers.NewCalendarHandler(calendarRepo, detailSvc, calendarPopular, calendarTrending) r.With(apimw.RequireProfile).Get("/calendar", calendarHandler.HandleGetCalendar) }