mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-24 14:37:05 +02:00
first commit
This commit is contained in:
commit
0c8af21fab
95 changed files with 5312 additions and 0 deletions
10
server/internal/http/handler/ping.go
Normal file
10
server/internal/http/handler/ping.go
Normal file
|
@ -0,0 +1,10 @@
|
|||
package handler
|
||||
|
||||
import "net/http"
|
||||
|
||||
func (h *Handler) Ping(w http.ResponseWriter, r *http.Request) error {
|
||||
w.Header().Set("Content-Type", "text/plain")
|
||||
w.WriteHeader(http.StatusOK)
|
||||
w.Write([]byte("."))
|
||||
return nil
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue