added docker continers to track server usage of docker containers
This commit is contained in:
@@ -1,9 +1,22 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/gin-gonic/gin"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func Servers() {
|
||||
fmt.Print("here")
|
||||
func Server() {
|
||||
r := gin.Default()
|
||||
|
||||
// Gets default information of the server
|
||||
r.GET("/server_info", func(c *gin.Context) {
|
||||
c.JSON(http.StatusOK, ServerInfo())
|
||||
})
|
||||
|
||||
r.GET("/create_vm", func(c *gin.Context) {
|
||||
c.JSON(http.StatusOK, ServerInfo())
|
||||
})
|
||||
|
||||
// Port running on
|
||||
r.Run(":8088")
|
||||
}
|
||||
Reference in New Issue
Block a user