mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 19:36:44 +01:00
Put api DBs into struct
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user