diff --git a/kernel/api/av.go b/kernel/api/av.go index a4843cde6..09541abb7 100644 --- a/kernel/api/av.go +++ b/kernel/api/av.go @@ -78,7 +78,7 @@ func getAttributeViewKeys(c *gin.Context) { ret.Data = blockAttributeViewKeys } -func setAttributeViewBlockAttrs(c *gin.Context) { +func setAttributeViewBlockAttr(c *gin.Context) { ret := gulu.Ret.NewResult() defer c.JSON(http.StatusOK, ret) diff --git a/kernel/api/router.go b/kernel/api/router.go index 17f6e8a09..254da533d 100644 --- a/kernel/api/router.go +++ b/kernel/api/router.go @@ -360,7 +360,7 @@ func ServeAPI(ginServer *gin.Engine) { ginServer.Handle("POST", "/api/av/renderAttributeView", model.CheckAuth, renderAttributeView) ginServer.Handle("POST", "/api/av/getAttributeViewKeys", model.CheckAuth, getAttributeViewKeys) - ginServer.Handle("POST", "/api/av/setAttributeViewBlockAttrs", model.CheckAuth, setAttributeViewBlockAttrs) + ginServer.Handle("POST", "/api/av/setAttributeViewBlockAttr", model.CheckAuth, setAttributeViewBlockAttr) ginServer.Handle("POST", "/api/ai/chatGPT", model.CheckAuth, model.CheckReadonly, chatGPT) ginServer.Handle("POST", "/api/ai/chatGPTWithAction", model.CheckAuth, model.CheckReadonly, chatGPTWithAction)