Initial commit (code only without large binaries)
This commit is contained in:
20
EdgeUser/internal/web/actions/default/plans/init.go
Normal file
20
EdgeUser/internal/web/actions/default/plans/init.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package plans
|
||||
|
||||
import (
|
||||
"github.com/TeaOSLab/EdgeUser/internal/web/helpers"
|
||||
"github.com/iwind/TeaGo"
|
||||
)
|
||||
|
||||
func init() {
|
||||
TeaGo.BeforeStart(func(server *TeaGo.Server) {
|
||||
server.
|
||||
Helper(helpers.NewUserMustAuth("")).
|
||||
Data("teaMenu", "plans").
|
||||
Prefix("/plans").
|
||||
GetPost("", new(IndexAction)).
|
||||
GetPost("/buy", new(BuyAction)).
|
||||
Post("/delete", new(DeleteAction)).
|
||||
GetPost("/renewPopup", new(RenewPopupAction)).
|
||||
EndAll()
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user