mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-05 06:10:26 +08:00
17 lines
271 B
Go
17 lines
271 B
Go
|
|
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()
|
||
|
|
})
|
||
|
|
}
|