mirror of
https://github.com/zitadel/zitadel.git
synced 2025-04-07 10:44:43 +00:00
19 lines
367 B
Go
19 lines
367 B
Go
![]() |
package handler
|
||
|
|
||
|
import (
|
||
|
"net/http"
|
||
|
)
|
||
|
|
||
|
func (l *Login) handleHealthz(w http.ResponseWriter, r *http.Request) {
|
||
|
w.Write([]byte("OK"))
|
||
|
}
|
||
|
|
||
|
func (l *Login) handleReadiness(w http.ResponseWriter, r *http.Request) {
|
||
|
err := l.authRepo.Health(r.Context())
|
||
|
if err != nil {
|
||
|
http.Error(w, "not ready", http.StatusInternalServerError)
|
||
|
return
|
||
|
}
|
||
|
w.Write([]byte("OK"))
|
||
|
}
|