router.go 299 B

1234567891011121314
  1. package routers
  2. import (
  3. "Yunlot/controllers"
  4. beego "github.com/beego/beego/v2/server/web"
  5. )
  6. func init() {
  7. beego.Router("/", &controllers.MainController{})
  8. //----------- 配置图片
  9. beego.Router("/UpFile/Token", &controllers.UpFileController{}, "*:UpFileToken") // *全部; get,post:
  10. }