Files
EdgeAdmin/internal/web/actions/default/messages/init.go
2020-10-20 20:18:12 +08:00

21 lines
441 B
Go

package messages
import (
"github.com/TeaOSLab/EdgeAdmin/internal/web/helpers"
"github.com/iwind/TeaGo"
)
func init() {
TeaGo.BeforeStart(func(server *TeaGo.Server) {
server.
Helper(new(helpers.UserMustAuth)).
Helper(new(Helper)).
Prefix("/messages").
GetPost("", new(IndexAction)).
Post("/badge", new(BadgeAction)).
Post("/readAll", new(ReadAllAction)).
Post("/readPage", new(ReadPageAction)).
EndAll()
})
}