1
0
forked from x/icebergs
This commit is contained in:
harveyshao 2022-03-08 23:53:33 +08:00
parent ef79b4d524
commit f208c8114d
2 changed files with 7 additions and 0 deletions

View File

@ -72,6 +72,11 @@ func init() {
m.ProcessLocation(arg[0])
return
}
switch kit.Ext(path.Join(arg...)) {
case "html":
m.RenderResult(m.Cmdx(nfs.CAT, path.Join(ice.SRC, path.Join(arg...))))
return
}
m.Option(nfs.DIR_ROOT, path.Join(m.Config(nfs.PATH), strings.TrimPrefix(path.Dir(m.R.URL.Path), "/cmd")))
m.Cmdy(nfs.DIR, arg)
}},

2
go.sum
View File

@ -1,4 +1,6 @@
shylinux.com/x/go-qrcode v0.0.1 h1:/eOGqMj1qtgs9Ymd12zTUa1gcJZs9S92kj2lb0QzKsE=
shylinux.com/x/go-qrcode v0.0.1/go.mod h1:KAbtU+KwiiABMZ/CJ0zh9PI2AX82Uf9rRYcQ4ODm4po=
shylinux.com/x/toolkits v0.5.2 h1:caTvTQ5o8hogGI5u120uh2X6rW/6cm8vP1vrSJJalgs=
shylinux.com/x/toolkits v0.5.2/go.mod h1:8LbYHe7oxBIqb6s4MSOD+4d28QvPdvkyCVtwB/JW7AA=
shylinux.com/x/websocket v0.0.1 h1:OBc21DxqsGlQ2+Pz76xqLyDNo1LV+PUUqfWi+1PZPDE=
shylinux.com/x/websocket v0.0.1/go.mod h1:AaSpMToOxbMULKQytzczeHPuqb708vK1vrAzCxLo/XE=