19 lines
581 B
Go
19 lines
581 B
Go
package router
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"nCovTrack-Backend/handler"
|
|
)
|
|
|
|
func statisticRouter(router *gin.RouterGroup) {
|
|
statisticsRouter := router.Group("/statistics")
|
|
{
|
|
statisticsRouter.GET("/province/:sort", handler.ProvinceDataHandler)
|
|
statisticsRouter.GET("/city/:sort", handler.CityDataHandler)
|
|
statisticsRouter.GET("/country/child", handler.CountryDataHandler)
|
|
statisticsRouter.GET("/country", handler.CountryDataHandler)
|
|
statisticsRouter.GET("/china", handler.ChinaDataHandler)
|
|
statisticsRouter.GET("/china/trend", handler.ChinaTrendHandler)
|
|
}
|
|
}
|