dongfeng-pay/shop/routers/router.go

15 lines
469 B
Go
Raw Normal View History

2019-12-19 14:47:58 +08:00
package routers
import (
"github.com/astaxie/beego"
2019-12-19 16:43:20 +08:00
"dongfeng-pay/shop/controllers"
2019-12-19 14:47:58 +08:00
)
func init() {
beego.Router("/", &controllers.HomeAction{}, "*:ShowHome") //初始化首页
beego.Router("/pay.html", &controllers.PayController{}, "*:Pay")
beego.Router("/pay_requst.html", &controllers.ScanShopController{})
beego.Router("/scan.html", &controllers.ScanShopController{}, "*:ScanRender")
beego.Router("/error.html", &controllers.HomeAction{}, "*:ErrorPage")
}