12 lines
197 B
Go
12 lines
197 B
Go
package api
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
// HandlePing responde a heartbeat dos peers
|
|
func HandlePing(w http.ResponseWriter, r *http.Request) {
|
|
w.WriteHeader(http.StatusOK)
|
|
w.Write([]byte("pong"))
|
|
}
|