mirror of
https://shylinux.com/x/icebergs
synced 2025-04-26 17:44:05 +08:00
opt web
This commit is contained in:
parent
ec83a5b39c
commit
b4159f31ad
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user