fixup of previous commit -- make json fields lowercase_underscored

This commit is contained in:
Eugene Bujak 2018-12-21 16:16:13 +03:00
parent 87b3c92f71
commit c073f9db7b
1 changed files with 4 additions and 4 deletions

View File

@ -47,10 +47,10 @@ func handleDHCPInterfaces(w http.ResponseWriter, r *http.Request) {
} }
type responseInterface struct { type responseInterface struct {
Name string Name string `json:"name"`
MTU int MTU int `json:"mtu"`
HardwareAddr string HardwareAddr string `json:"hardware_address"`
Addresses []string Addresses []string `json:"ip_addresses"`
} }
for i := range ifaces { for i := range ifaces {