2020-07-06 23:07:21 +00:00
|
|
|
/*
|
|
|
|
Copyright 2020 VMware, Inc.
|
|
|
|
SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
package handlers
|
|
|
|
|
|
|
|
import "net/http"
|
|
|
|
|
2020-07-07 20:41:05 +00:00
|
|
|
const jsonMimeType = "application/json; charset=utf-8"
|
|
|
|
const headerNameContentType = "Content-Type"
|
2020-07-06 23:07:21 +00:00
|
|
|
|
|
|
|
func New() http.Handler {
|
|
|
|
mux := http.NewServeMux()
|
|
|
|
mux.Handle("/healthz", newHealthzHandler())
|
|
|
|
return mux
|
|
|
|
}
|