commited readiptable

Signed-off-by: Akilan1999 <akilan.selvacoumar@planetscale.com>
This commit is contained in:
Akilan1999
2021-03-20 19:19:34 +04:00
parent 60485a6a41
commit 79860a2756
15 changed files with 232 additions and 3 deletions

View File

@@ -1,7 +1,9 @@
package server
import (
"fmt"
"github.com/gin-gonic/gin"
"log"
"net/http"
//"fmt"
)
@@ -14,6 +16,19 @@ func Server() {
c.JSON(http.StatusOK, ServerInfo())
})
// Route build to do a speed test
r.GET("/upload", func(c *gin.Context) {
file, _ := c.FormFile("file")
log.Println(file.Filename)
// Upload the file to specific dst.
// c.SaveUploadedFile(file, dst)
c.String(http.StatusOK, fmt.Sprintf("'%s' uploaded!", file.Filename))
})
/*r.GET("/create_vm/:virtualization", func(c *gin.Context) {
virtualization := c.Param("virtualization")
// Runs based on Preallocated VM size