1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-26 17:44:05 +08:00
This commit is contained in:
shaoying 2022-11-28 09:11:01 +08:00
parent ec83a5b39c
commit b4159f31ad

View File

@ -55,7 +55,7 @@ func (f *Frame) Start(m *ice.Message, arg ...string) bool {
func(key string, cmd *ice.Command) { func(key string, cmd *ice.Command) {
msg.Log(ROUTE, "%s <- %s", c.Name, key) msg.Log(ROUTE, "%s <- %s", c.Name, key)
f.HandleFunc(key, func(w http.ResponseWriter, r *http.Request) { f.HandleFunc(key, func(w http.ResponseWriter, r *http.Request) {
m.TryCatch(msg.Spawn(), true, func(msg *ice.Message) { _serve_handle(key, cmd, msg, w, r) }) msg.TryCatch(msg.Spawn(), true, func(msg *ice.Message) { _serve_handle(key, cmd, msg, w, r) })
}) })
ice.Info.Route[path.Join(list[c], key)] = ctx.FileURI(cmd.GetFileLine()) ice.Info.Route[path.Join(list[c], key)] = ctx.FileURI(cmd.GetFileLine())
}(key, cmd) }(key, cmd)