feat: 基本HTTP服务器

- REST API: health用于检测服务器REST API正常运行
This commit is contained in:
2025-12-16 15:07:52 +08:00
parent 736d4f550c
commit 9bac821750
4 changed files with 94 additions and 0 deletions

View File

@ -0,0 +1,8 @@
package handler
import "net/http"
func Health(w http.ResponseWriter, _ *http.Request) {
w.WriteHeader(http.StatusOK)
w.Write([]byte("OK"))
}