mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 12:40:07 +00:00
添加服务器 & 展示服务器
This commit is contained in:
@@ -13,6 +13,10 @@ import (
|
||||
|
||||
// ServeWeb ..
|
||||
func ServeWeb() {
|
||||
gin.SetMode(gin.ReleaseMode)
|
||||
if dao.Conf.Debug {
|
||||
gin.SetMode(gin.DebugMode)
|
||||
}
|
||||
r := gin.Default()
|
||||
r.Use(mygin.RecordPath)
|
||||
r.SetFuncMap(template.FuncMap{
|
||||
|
||||
Reference in New Issue
Block a user