mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 14:15:06 +03:00
Expose healthz endpoint
Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
This commit is contained in:
parent
1521e1e299
commit
e8704be048
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ func (l *linkWSListener) Close() error {
|
|||
}
|
||||
|
||||
func (s *wsServer) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
if r.URL.Path == "/health" {
|
||||
if r.URL.Path == "/health" || r.URL.Path == "/healthz" {
|
||||
w.WriteHeader(http.StatusOK)
|
||||
_, _ = w.Write([]byte("OK"))
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue