mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-04 21:50:28 +08:00
21 lines
441 B
Go
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()
|
||
|
|
})
|
||
|
|
}
|