chore(tfstated): refactor backend code to a dedicated package
This commit is contained in:
parent
1dbb1b9ee7
commit
36e3d473f2
9 changed files with 60 additions and 36 deletions
12
pkg/backend/healthz.go
Normal file
12
pkg/backend/healthz.go
Normal file
|
@ -0,0 +1,12 @@
|
|||
package backend
|
||||
|
||||
import "net/http"
|
||||
|
||||
func handleHealthz() http.Handler {
|
||||
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
w.Header().Set("Cache-Control", "no-store, no-cache")
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
w.WriteHeader(http.StatusOK)
|
||||
_, _ = w.Write([]byte("{}"))
|
||||
})
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue