Skip to content

Commit

Permalink
fix: hosts response
Browse files Browse the repository at this point in the history
  • Loading branch information
dploeger committed Dec 22, 2023
1 parent 9c1c23d commit fce6e21
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/endpoints/hosts.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ func (H HostsEndpoint) getHosts(context *gin.Context) {
"error": fmt.Sprintf("Error getting hosts: %s", err),
})
} else {
context.JSON(200, gin.H{
"hosts": Hosts{Hosts: HostsResult{
context.JSON(200, Hosts{
Hosts: HostsResult{
Count: len(hosts),
Hosts: hosts,
}},
})
)
}
}
}

0 comments on commit fce6e21

Please sign in to comment.