mirror of
https://github.com/kongyuebin1/dongfeng-pay.git
synced 2024-11-23 02:39:26 +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")
|
|
}
|