Files
nCovTrack-Backend/router/router.go
2022-01-23 18:28:01 +08:00

26 lines
541 B
Go

package router
import (
"nCovTrack-Backend/global"
"net/http"
"time"
"github.com/gin-gonic/gin"
)
func BusiRouter() {
testRouter := global.RootRouter.Group("/test")
{
testRouter.GET("/count", func(c *gin.Context) {
time.Sleep(800 * time.Millisecond)
c.String(http.StatusOK, "OK")
})
//testRouter.GET("/test", statistics.GetChinaNCovStatistic())
//testRouter.GET("/redis", func(c *gin.Context) {
// data := statistics.GetAllProvienceData(statistics.SORT_NOW_CONFIRM)
// Succ(c, data)
//})
}
statisticRouter()
}