theme-mdui by @MikoyChinese

This commit is contained in:
naiba committed 2022-01-09 11:54:14 +08:00
1 parent 16cfce325d
commit 5bdfc0e052
21 files changed
+246 -245

No files matched your search

+2 -2
View File
@@ -14,13 +14,13 @@ import (
"github.com/gin-gonic/gin"
"github.com/naiba/nezha/pkg/mygin"
"github.com/naiba/nezha/service/dao"
"github.com/naiba/nezha/service/singleton"
)
func ServeWeb(port uint) *http.Server {
gin.SetMode(gin.ReleaseMode)
r := gin.Default()
if dao.Conf.Debug {
if singleton.Conf.Debug {
gin.SetMode(gin.DebugMode)
pprof.Register(r)
}