mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 12:40:07 +00:00
添加服务器 & 展示服务器
This commit is contained in:
@@ -26,7 +26,10 @@ func (cp *commonPage) home(c *gin.Context) {
|
||||
if ok && isLogin.(bool) {
|
||||
admin = dao.Admin
|
||||
}
|
||||
var servers []model.Server
|
||||
dao.DB.Find(&servers)
|
||||
c.HTML(http.StatusOK, "page/home", mygin.CommonEnvironment(c, gin.H{
|
||||
"Admin": admin,
|
||||
"Admin": admin,
|
||||
"Servers": servers,
|
||||
}))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user