Admin.go 547 B

12345678910111213141516171819
  1. package routers
  2. import (
  3. "ColdP_server/controllers"
  4. beego "github.com/beego/beego/v2/server/web"
  5. )
  6. func init() {
  7. //登录页面
  8. beego.Router("/", &controllers.AdminController{}, "*:Login")
  9. beego.Router("/Login", &controllers.AdminController{}, "*:Login")
  10. //登录验证
  11. beego.Router("/Login_verification", &controllers.AdminController{}, "POST:Login_verification")
  12. //登录后的页面
  13. beego.Router("/Index", &controllers.AdminController{}, "*:Index")
  14. //显示主页
  15. beego.Router("/Home", &controllers.AdminController{}, "*:Home")
  16. }