27 lines
558 B
Go
27 lines
558 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()
|
|
articleRouter()
|
|
}
|