You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dongfeng-pay/shop/routers/router.go

15 lines
469 B
Go

package routers
import (
"github.com/astaxie/beego"
"dongfeng-pay/shop/controllers"
)
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")
}