2024-12-30 23:07:00 +01:00
|
|
|
package backend
|
2024-09-28 09:45:03 +02:00
|
|
|
|
|
|
|
import "net/http"
|
|
|
|
|
|
|
|
func handleHealthz() http.Handler {
|
|
|
|
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
|
|
|
w.Header().Set("Cache-Control", "no-store, no-cache")
|
|
|
|
w.Header().Set("Content-Type", "application/json")
|
|
|
|
w.WriteHeader(http.StatusOK)
|
|
|
|
_, _ = w.Write([]byte("{}"))
|
|
|
|
})
|
|
|
|
}
|