21 lines
445 B
Go
21 lines
445 B
Go
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()
|
|
})
|
|
}
|