correctly return server resource stats; closes pterodactyl/panel#2183
This commit is contained in:
parent
4d8f06a3e0
commit
79ee259874
|
@ -13,7 +13,9 @@ import (
|
||||||
|
|
||||||
// Returns a single server from the collection of servers.
|
// Returns a single server from the collection of servers.
|
||||||
func getServer(c *gin.Context) {
|
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.
|
// Returns the logs for a given server instance.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user