mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-19 23:50:25 +08:00
增加消息管理
This commit is contained in:
20
internal/web/actions/default/messages/init.go
Normal file
20
internal/web/actions/default/messages/init.go
Normal file
@@ -0,0 +1,20 @@
|
||||
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()
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user