feat: expose learning video health detail
Some checks failed
CI / hygiene (push) Successful in 2s
Build and Deploy / build-and-deploy (push) Successful in 27s
CI / test (push) Failing after 19s

This commit is contained in:
Grendgi
2026-06-17 16:03:25 +03:00
parent ae2ac23a3a
commit 5ad2a8a33e
3 changed files with 85 additions and 4 deletions

View File

@@ -79,7 +79,7 @@ func main() {
"portal_url_set", cfg.PortalURL != "", "portal_key_set", cfg.InternalAPIKey != "")
}
healthH := handler.NewHealthHandler(pool)
healthH := handler.NewHealthHandler(pool, store)
testH := handler.NewTestHandler(testRepo, accessRepo)
attemptH := handler.NewAttemptHandler(attemptRepo, testRepo)
courseH := handler.NewCourseHandler(courseRepo, accessRepo)
@@ -94,6 +94,7 @@ func main() {
r.Get("/healthz", healthH.Healthz)
r.Get("/readyz", healthH.Readyz)
r.Get("/health/detail", healthH.Detail)
r.Route("/api", func(r chi.Router) {
r.Use(commonmw.InternalAuth(cfg.InternalAPIKey))