fix(issue-9): No Dockerfile to build service
This commit is contained in:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user