-
Notifications
You must be signed in to change notification settings - Fork 34
/
init.go
32 lines (30 loc) · 977 Bytes
/
init.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package notices
import (
"github.com/TeaWeb/code/teaweb/helpers"
"github.com/iwind/TeaGo"
)
func init() {
TeaGo.BeforeStart(func(server *TeaGo.Server) {
server.
Helper(&helpers.UserMustAuth{}).
Helper(new(Helper)).
Prefix("/notices").
Get("", new(IndexAction)).
Get("/badge", new(BadgeAction)).
Post("/setRead", new(SetReadAction)).
Get("/setting", new(SettingAction)).
Get("/level", new(LevelAction)).
GetPost("/addReceiver", new(AddReceiverAction)).
Get("/medias", new(MediasAction)).
GetPost("/addMedia", new(AddMediaAction)).
Post("/deleteMedia", new(DeleteMediaAction)).
Get("/mediaDetail", new(MediaDetailAction)).
GetPost("/updateMedia", new(UpdateMediaAction)).
GetPost("/testMedia", new(TestMediaAction)).
Post("/deleteReceiver", new(DeleteReceiverAction)).
Get("/receiver", new(ReceiverAction)).
GetPost("/updateReceiver", new(UpdateReceiverAction)).
Post("/sound", new(SoundAction)).
EndAll()
})
}