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

16 lines
294 B
Go
Raw Normal View History

2020-07-22 22:19:39 +08:00
package dashboard
import (
"github.com/TeaOSLab/EdgeAdmin/internal/web/helpers"
"github.com/iwind/TeaGo"
)
func init() {
TeaGo.BeforeStart(func(server *TeaGo.Server) {
server.Prefix("/dashboard").
Helper(new(helpers.UserMustAuth)).
GetPost("", new(IndexAction)).
EndAll()
})
}