fix(issue-9): No Dockerfile to build service

This commit is contained in:
frx
2026-07-01 17:06:02 +00:00
parent 6d6f5e19d1
commit c2cefe0d32
5 changed files with 124 additions and 0 deletions

View File

@ -63,6 +63,11 @@ func setupHTTP(cfg config.HTTP, srv xhttp.Server, log *slog.Logger) *http.Server
middlewareMetrics(),
)
router.HandleFunc("/healthz", func(w http.ResponseWriter, _ *http.Request) {
w.WriteHeader(http.StatusOK)
_, _ = w.Write([]byte("ok"))
}).Methods(http.MethodGet)
setupCoursesHTTP(srv, router, log)
if cfg.MountLive {