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

18 lines
505 B
Go

package router
import (
"nCovTrack-Backend/global"
"nCovTrack-Backend/handler"
)
func statisticRouter() {
statisticsRouter := global.RootRouter.Group("/statistics")
{
statisticsRouter.GET("/provience/:sort", handler.ProvienceDataHandler)
statisticsRouter.GET("/city/:sort", handler.CityDataHandler)
statisticsRouter.GET("/country/child", handler.CountryDataHandler)
statisticsRouter.GET("/country", handler.CountryDataHandler)
statisticsRouter.GET("/china", handler.ChinaDataHandler)
}
}