18 lines
505 B
Go
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)
|
|
}
|
|
}
|