feat: statistics: finish dev
This commit is contained in:
17
router/statistics.go
Normal file
17
router/statistics.go
Normal file
@@ -0,0 +1,17 @@
|
||||
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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user