dongfeng-pay/shop/routers/router.go
2021-11-18 13:52:30 +08:00

15 lines
458 B
Go

package routers
import (
"github.com/beego/beego/v2/server/web"
"shop/controllers"
)
func init() {
web.Router("/", &controllers.HomeAction{}, "*:ShowHome") //初始化首页
web.Router("/pay.html", &controllers.PayController{}, "*:Pay")
web.Router("/pay_requst.html", &controllers.ScanShopController{})
web.Router("/scan.html", &controllers.ScanShopController{}, "*:ScanRender")
web.Router("/error.html", &controllers.HomeAction{}, "*:ErrorPage")
}