commentsRouter.go 571 B

12345678910111213141516171819
  1. package routers
  2. import (
  3. beego "github.com/beego/beego/v2/server/web"
  4. "github.com/beego/beego/v2/server/web/context/param"
  5. )
  6. func init() {
  7. beego.GlobalControllerRouter["eta/eta_crawler/controllers:ResourceController"] = append(beego.GlobalControllerRouter["eta/eta_crawler/controllers:ResourceController"],
  8. beego.ControllerComments{
  9. Method: "ResourceUpload",
  10. Router: `/resource/upload`,
  11. AllowHTTPMethods: []string{"post"},
  12. MethodParams: param.Make(),
  13. Filters: nil,
  14. Params: nil})
  15. }