2019-12-19 14:47:58 +08:00
|
|
|
package routers
|
|
|
|
|
|
|
|
import (
|
2021-11-18 13:52:30 +08:00
|
|
|
"github.com/beego/beego/v2/server/web"
|
2021-04-27 15:33:49 +08:00
|
|
|
"shop/controllers"
|
2019-12-19 14:47:58 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
2021-11-18 13:52:30 +08:00
|
|
|
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")
|
2019-12-19 14:47:58 +08:00
|
|
|
}
|