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:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user