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 19:54:14 +00:00
|
|
|
const JSONMimeType = "application/json; charset=utf-8"
|
2020-07-06 23:07:21 +00:00
|
|
|
const HeaderNameContentType = "Content-Type"
|
|
|
|
|
|
|
|
func New() http.Handler {
|
|
|
|
mux := http.NewServeMux()
|
|
|
|
mux.Handle("/healthz", newHealthzHandler())
|
|
|
|
return mux
|
|
|
|
}
|