Files
nCovTrack-Backend/router/router.go
fallen-angle 2d43931fc8 feat: add jwt
2022-02-10 17:08:42 +08:00

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()
}