1
0
forked from x/icebergs
icebergs/base/web/admin.go
2023-12-09 18:03:47 +08:00

21 lines
460 B
Go

package web
import (
"net/http"
"path"
ice "shylinux.com/x/icebergs"
kit "shylinux.com/x/toolkits"
)
const ADMIN = "admin"
func init() {
Index.MergeCommands(ice.Commands{
ADMIN: {Name: "admin index list", Help: "管理", Hand: func(m *ice.Message, arg ...string) {
kit.If(len(arg) == 0, func() { arg = append(arg, SPACE, DOMAIN) })
m.Cmdy(SPIDE, ice.OPS, SPIDE_RAW, http.MethodGet, CHAT_CMD+path.Join(arg...), "pwd", kit.Path(""))
}},
})
}