From 1b8afda8281813596536191f0e91006fe1f89042 Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 20 Oct 2023 11:07:36 +0800 Subject: [PATCH] [change] Neo history api --- neo/neo.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/neo/neo.go b/neo/neo.go index ab4e9be5..f55b8756 100644 --- a/neo/neo.go +++ b/neo/neo.go @@ -83,7 +83,10 @@ func (neo *DSL) API(router *gin.Engine, path string) error { return } - c.JSON(200, history) + c.JSON(200, map[string]interface{}{ + "data": history, + "command": nil, + }) c.Done() }) router.GET(path+"/history", handlers...)