1package api 2 3import ( 4 "net/http" 5 6 "github.com/gin-gonic/gin" 7) 8 9func (a *API) getState(c *gin.Context) { 10 stateAPI, err := a.h.GetStateAPI() 11 if err != nil { 12 retBadReq(err, c) 13 return 14 } 15 c.JSON(http.StatusOK, stateAPI) 16}