28 lines
528 B
Go
28 lines
528 B
Go
package router
|
|
|
|
import (
|
|
"nCovTrack-Backend/global"
|
|
"nCovTrack-Backend/middleware"
|
|
)
|
|
|
|
func BusiRouter() {
|
|
publicRouter := global.RootRouter.Group("")
|
|
privateRouter := global.RootRouter.Group("")
|
|
privateRouter.Use(middleware.Auth())
|
|
|
|
// Public
|
|
{
|
|
statisticRouter(publicRouter)
|
|
articlePublicRouter(publicRouter)
|
|
userPublicRouter(publicRouter)
|
|
}
|
|
|
|
// Private
|
|
{
|
|
articlePrivateRouter(privateRouter)
|
|
userPrivateRouter(privateRouter)
|
|
notifyPrivateRouter(privateRouter)
|
|
managementPrivateRouter(privateRouter)
|
|
}
|
|
}
|