router.go 565 B

12345678910111213141516171819202122232425
  1. // @APIVersion 1.0.0
  2. // @Title beego Test API
  3. // @Description beego has a very cool tools to autogenerate documents for your API
  4. // @Contact astaxie@gmail.com
  5. // @TermsOfServiceUrl http://beego.me/
  6. // @License Apache 2.0
  7. // @LicenseUrl http://www.apache.org/licenses/LICENSE-2.0.html
  8. package routers
  9. import (
  10. "hongze/hz_eta_data/controllers"
  11. beego "github.com/beego/beego/v2/server/web"
  12. )
  13. func init() {
  14. ns := beego.NewNamespace("/v1",
  15. beego.NSNamespace("/home",
  16. beego.NSInclude(
  17. &controllers.HomeController{},
  18. ),
  19. ),
  20. )
  21. beego.AddNamespace(ns)
  22. }