Files
push-server/interval/api/router.go
R2m1liA 9bac821750 feat: 基本HTTP服务器
- REST API: health用于检测服务器REST API正常运行
2025-12-16 15:07:52 +08:00

17 lines
228 B
Go

package api
import (
"net/http"
"git.jinshen.cn/remilia/push-server/interval/api/handler"
"github.com/go-chi/chi/v5"
)
func NewRouter() http.Handler {
r := chi.NewRouter()
r.Post("/health", handler.Health)
return r
}