Merge pull request #482 from trheyi/main

[change] Neo history api
This commit is contained in:
Max 2023-10-19 22:09:06 -05:00 committed by GitHub
commit 723340f9b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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...)