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