boltcard/ping.go
2023-02-22 08:11:52 +00:00

12 lines
265 B
Go

package main
import (
"net/http"
)
func external_ping(w http.ResponseWriter, req *http.Request) {
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(http.StatusOK)
jsonData := []byte(`{"status":"OK","pong":"external API"}`)
w.Write(jsonData)
}