/* Copyright 2020 The Vouch Proxy Authors. Use of this source code is governed by The MIT License (MIT) that can be found in the LICENSE file. Software distributed under The MIT License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ package handlers import ( "fmt" "net/http" ) // HealthcheckHandler /healthcheck // just returns 200 '{ "ok": true }' func HealthcheckHandler(w http.ResponseWriter, r *http.Request) { w.Header().Set("Content-Type", "application/json") if _, err := fmt.Fprintf(w, "{ \"ok\": true }"); err != nil { log.Error(err) } }