Downlaod speedtest module complete

This commit is contained in:
Akilan1999
2021-03-21 18:26:08 +04:00
parent 79860a2756
commit 4e3bf72a36
12 changed files with 329 additions and 59 deletions

BIN
server/50.bin Normal file

Binary file not shown.

View File

@@ -16,6 +16,11 @@ func Server() {
c.JSON(http.StatusOK, ServerInfo())
})
// Speed test with 50 mbps
r.GET("/50", func(c *gin.Context){
c.File("server/50.bin")
})
// Route build to do a speed test
r.GET("/upload", func(c *gin.Context) {
file, _ := c.FormFile("file")