mirror of
https://gitlab.52pay.top/go/easygoadmin.git
synced 2025-09-27 03:48:27 +08:00
feat: 封装为包
封装为包
This commit is contained in:
@@ -7,13 +7,13 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"easygoadmin/app/controller"
|
||||
"easygoadmin/app/middleware"
|
||||
widget2 "easygoadmin/app/widget"
|
||||
"github.com/gin-contrib/multitemplate"
|
||||
"github.com/gin-contrib/sessions"
|
||||
"github.com/gin-contrib/sessions/cookie"
|
||||
"github.com/gin-gonic/gin"
|
||||
"gitlab.52pay.top/go/easygoadmin/app/controller"
|
||||
"gitlab.52pay.top/go/easygoadmin/app/middleware"
|
||||
widget2 "gitlab.52pay.top/go/easygoadmin/app/widget"
|
||||
"html/template"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
@@ -302,7 +302,7 @@ func init() {
|
||||
example2.POST("/setStatus", controller.Example2.Status)
|
||||
}
|
||||
// 启动
|
||||
router.Run(":9097")
|
||||
//router.Run(":9097")
|
||||
}
|
||||
|
||||
func LoadTemplates(templatesDir string) multitemplate.Renderer {
|
||||
|
Reference in New Issue
Block a user