diff --git a/router/router_server.go b/router/router_server.go index ac2bf60..6af62d0 100644 --- a/router/router_server.go +++ b/router/router_server.go @@ -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.