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

17 lines
271 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.
Helper(new(actions.Gzip)).
Prefix("/ui").
Get("/components.js", new(ComponentsAction)).
EndAll()
})
}