remove unused

This commit is contained in:
YouROK
2020-11-09 10:05:59 +03:00
parent 332d0e7ba4
commit 0b09da2490

View File

@@ -3,6 +3,7 @@ package web
import ( import (
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"server/torr" "server/torr"
"server/web/api"
) )
var ( var (
@@ -17,11 +18,7 @@ func Start(port string) {
route := gin.New() route := gin.New()
route.Use(gin.Logger(), gin.Recovery()) route.Use(gin.Logger(), gin.Recovery())
route.GET("/ping", func(c *gin.Context) { api.SetupRouteApi(route)
c.JSON(200, gin.H{
"message": "pong",
})
})
waitChan <- route.Run(":" + port) waitChan <- route.Run(":" + port)
} }