From 92008a21393feb903f4d40a83bdb7875cdeb6b5f Mon Sep 17 00:00:00 2001 From: Hardy Date: Mon, 3 Mar 2025 09:39:37 +0800 Subject: [PATCH] fix: sync reflactor with framework (#170) Co-authored-by: hardy --- ui.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui.go b/ui.go index c292ee51..0d7637e9 100644 --- a/ui.go +++ b/ui.go @@ -63,7 +63,7 @@ func (h UI) InitUI() { // w.Write(buf) //}) - api.HandleUIFunc("/api/", func(w http.ResponseWriter, req *http.Request) { + api.HandleAPIFunc("/api/", func(w http.ResponseWriter, req *http.Request) { log.Warn("api: ", req.URL, " not implemented") request, err := h.GetRawBody(req) if err != nil {