More API response fixing

This commit is contained in:
Dane Everitt
2021-04-04 10:20:27 -07:00
parent 8dfd494eaf
commit f57c24002e
3 changed files with 24 additions and 17 deletions

View File

@@ -18,11 +18,7 @@ import (
// Returns a single server from the collection of servers.
func getServer(c *gin.Context) {
s := ExtractServer(c)
c.JSON(http.StatusOK, ServerJsonResponse{
Configuration: s.Config(),
Resources: s.Proc(),
})
c.JSON(http.StatusOK, ExtractServer(c).ToAPIResponse())
}
// Returns the logs for a given server instance.