mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-07 23:30:26 +08:00
16 lines
294 B
Go
16 lines
294 B
Go
|
|
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()
|
||
|
|
})
|
||
|
|
}
|