package routers import ( "ColdP_server/controllers" beego "github.com/beego/beego/v2/server/web" ) func init() { //登录页面 beego.Router("/", &controllers.AdminController{}, "*:Login") beego.Router("/Login", &controllers.AdminController{}, "*:Login") //登录验证 beego.Router("/Login_verification", &controllers.AdminController{}, "POST:Login_verification") //登录后的页面 beego.Router("/Index", &controllers.AdminController{}, "*:Index") //显示主页 beego.Router("/Home", &controllers.AdminController{}, "*:Home") }