Files
EdgeAdmin/internal/web/actions/default/ui/init.go

20 lines
342 B
Go
Raw Normal View History

2020-07-22 22:19:39 +08:00
package ui
import (
"github.com/iwind/TeaGo"
"github.com/iwind/TeaGo/actions"
)
func init() {
TeaGo.BeforeStart(func(server *TeaGo.Server) {
server.
Prefix("/ui").
2020-10-11 10:51:13 +08:00
Get("/download", new(DownloadAction)).
// 以下的需要压缩
Helper(new(actions.Gzip)).
2020-07-22 22:19:39 +08:00
Get("/components.js", new(ComponentsAction)).
EndAll()
})
}