Skip to content

Commit 932e47b

Browse files
committed
feat: add the existing email routes and handler to the API
1 parent 87b1438 commit 932e47b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

apps/api/internal/api/api.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ func Run() {
133133
hackathon.RegisterRoutes(hackathonHandler, huma.NewGroup(api, "/hackathon"), mw)
134134

135135
emailService := email.NewEmailService(hackathonRepo, userRepo, taskQueueClient, sesClient, r2Client, logger, config)
136+
emailHandler := email.NewHandler(emailService, logger)
137+
email.RegisterRoutes(emailHandler, huma.NewGroup(api, "/email"), mw)
138+
136139
batService := bat.NewBatService(applicationRepo, hackathonRepo, userRepo, batRunsRepo, emailService, txm, taskQueueClient, nil, config, logger)
137140
applicationService := application.NewService(applicationRepo, userRepo, hackathonRepo, txm, r2Client, &config.CoreBuckets, nil, emailService, batService, config, logger)
138141
applicationHandler := application.NewHandler(applicationService, batService, config, logger)

0 commit comments

Comments
 (0)