dongfeng-pay/shop/routers/router.go

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")
}