You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
257 B

4 months ago
package handlers
import (
"ginCms/handlers/system"
"github.com/gin-gonic/gin"
)
// 初始化路由引擎
func InitEngine() *gin.Engine {
// 1. 初始化路由引擎
r := gin.Default()
// 2. 注册不同模块的路由
system.Router(r)
return r
}