mirror of
https://github.com/DevVoxel/vectordns-server.git
synced 2026-02-27 09:47:37 +00:00
15 lines
257 B
Go
15 lines
257 B
Go
package handler
|
|
|
|
import (
|
|
"encoding/json"
|
|
"net/http"
|
|
)
|
|
|
|
func Health(w http.ResponseWriter, r *http.Request) {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
json.NewEncoder(w).Encode(map[string]string{
|
|
"status": "ok",
|
|
"version": "0.1.0",
|
|
})
|
|
}
|