More API response fixing
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user