mirror of
https://github.com/yv1ing/gin-admin.git
synced 2025-10-24 10:12:05 +08:00
完成基本框架搭建及系统用户登录流程
This commit is contained in:
20
internal/core/initialize/engine.go
Normal file
20
internal/core/initialize/engine.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package initialize
|
||||
|
||||
import (
|
||||
"gin-admin/internal/router"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// @Author: yv1ing
|
||||
// @Author: me@yvling.cn
|
||||
// @Date: 2025/8/28 13:59
|
||||
// @Desc: 初始化gin引擎
|
||||
|
||||
func InitEngine() *gin.Engine {
|
||||
gin.SetMode(gin.ReleaseMode)
|
||||
|
||||
eng := gin.New()
|
||||
router.SetupRoutes(eng)
|
||||
|
||||
return eng
|
||||
}
|
||||
Reference in New Issue
Block a user