feat(calendar): wire popular and trending sources into calendar handler

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Quick
2026-05-29 13:56:14 -04:00
co-authored by Claude Opus 4.8
parent 6560dfc470
commit e9847a4424
+3 -1
View File
@@ -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)
}