drone-test/router/router.go

18 lines
292 B
Go
Raw Normal View History

2022-06-15 10:31:40 +08:00
package router
import (
"docDemo/api"
"github.com/gin-gonic/gin"
)
// InitRouter 初始化路由
func InitRouter(app *gin.RouterGroup) {
// 开放接口
openRouter(app.Group("/open"))
}
// 内部开放接口
func openRouter(g *gin.RouterGroup) {
g.GET("/test", api.ScaleApi().Test)
}