Koito/engine/handlers/health.go

10 lines
208 B
Go

package handlers
import "net/http"
func HealthHandler() http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)
w.Write([]byte(`{"status":"ready"}`))
}
}