Put api DBs into struct

This commit is contained in:
Arnau B
2020-11-06 11:57:57 +01:00
parent 3591e3c2a2
commit 1112ded933
18 changed files with 172 additions and 172 deletions

View File

@@ -32,6 +32,6 @@ type configAPI struct {
WDelayerConstants common.WDelayerConstants `json:"withdrawalDelayer"`
}
func getConfig(c *gin.Context) {
c.JSON(http.StatusOK, cg)
func (a *API) getConfig(c *gin.Context) {
c.JSON(http.StatusOK, a.cg)
}