mirror of
https://github.com/kongyuebin1/dongfeng-pay.git
synced 2024-12-26 12:12:25 +08:00
15 lines
458 B
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")
|
|
}
|