Fix getmenus
parent
74dc132b2b
commit
e572aae2a2
|
@ -106,7 +106,7 @@ func (c *Cli) Exit() error {
|
||||||
|
|
||||||
func (c *Cli) MenuGetAllEnabled() (ret []types.Menu, err error) {
|
func (c *Cli) MenuGetAllEnabled() (ret []types.Menu, err error) {
|
||||||
ret = make([]types.Menu, 0)
|
ret = make([]types.Menu, 0)
|
||||||
err = c.HttpCli().JsonGet("/api/v1/menu/enabled", nil)
|
err = c.HttpCli().JsonGet("/api/v1/menu/enabled", &ret)
|
||||||
return ret, err
|
return ret, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue