router.go 267 B

1234567891011121314151617
  1. package routers
  2. import (
  3. "eta_gn/eta_task/controllers"
  4. "github.com/beego/beego/v2/server/web"
  5. )
  6. func init() {
  7. ns := web.NewNamespace("/v1",
  8. web.NSNamespace("/data",
  9. web.NSInclude(
  10. &controllers.DataInitController{},
  11. ),
  12. ),
  13. )
  14. web.AddNamespace(ns)
  15. }