commit inicial do projeto
This commit is contained in:
11
internal/api/heartbeat_handler.go
Normal file
11
internal/api/heartbeat_handler.go
Normal file
@ -0,0 +1,11 @@
|
||||
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"))
|
||||
}
|
||||
Reference in New Issue
Block a user