feat: expose learning video health detail
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user