mirror of
https://github.com/fatedier/frp.git
synced 2025-08-17 08:01:40 +02:00
add healthz api (#2511)
This commit is contained in:
@ -32,6 +32,11 @@ type GeneralResponse struct {
|
||||
Msg string
|
||||
}
|
||||
|
||||
// /healthz
|
||||
func (svr *Service) healthz(w http.ResponseWriter, r *http.Request) {
|
||||
w.WriteHeader(200)
|
||||
}
|
||||
|
||||
// GET api/reload
|
||||
func (svr *Service) apiReload(w http.ResponseWriter, r *http.Request) {
|
||||
res := GeneralResponse{Code: 200}
|
||||
|
Reference in New Issue
Block a user