1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-26 01:24:05 +08:00

add publish

This commit is contained in:
shaoying 2020-05-11 08:37:33 +08:00
parent 7460bf90d1
commit b978f0a8eb

View File

@ -455,9 +455,8 @@ var Index = &ice.Context{Name: "web", Help: "网络模块",
"index", "usr/volcanos/page/index.html",
"share", "usr/volcanos/page/share.html",
),
"static", kit.Dict("/", "usr/volcanos/",
"/publish/", "usr/publish/",
),
"static", kit.Dict("/", "usr/volcanos/"),
"publish", "usr/publish/",
"volcanos", kit.Dict("path", "usr/volcanos", "branch", "master",
"repos", "https://github.com/shylinux/volcanos",
"require", ".ish/pluged",
@ -2428,6 +2427,14 @@ var Index = &ice.Context{Name: "web", Help: "网络模块",
m.Render(ice.RENDER_DOWNLOAD, p)
}
}},
"/publish/": {Name: "/publish/", Help: "空间站", Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
if m.Option("pod") != "" {
m.Cmdy(ice.WEB_SPACE, m.Option("pod"), "web./publish", arg)
m.Render(ice.RENDER_RESULT)
return
}
m.Render(ice.RENDER_DOWNLOAD, path.Join(kit.Simple(m.Conf(ice.WEB_SERVE, "meta.publish"), arg)...))
}},
},
}