correctly return server resource stats; closes pterodactyl/panel#2183

This commit is contained in:
Dane Everitt 2020-07-29 20:34:30 -07:00
parent 4d8f06a3e0
commit 79ee259874
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -13,7 +13,9 @@ import (
// Returns a single server from the collection of servers.
func getServer(c *gin.Context) {
c.JSON(http.StatusOK, GetServer(c.Param("server")))
s := GetServer(c.Param("server"))
c.JSON(http.StatusOK, s.Proc())
}
// Returns the logs for a given server instance.