You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
607 B

9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
  1. package app
  2. import (
  3. "github.com/gogf/gf/v2/net/ghttp"
  4. "xgit.pub/module/cms/app/controller/api"
  5. "xgit.pub/module/cms/app/controller/category"
  6. "xgit.pub/module/cms/app/controller/collect"
  7. "xgit.pub/module/cms/app/controller/video"
  8. _ "xgit.pub/module/cms/app/logic"
  9. )
  10. var (
  11. Version = "0.0.1"
  12. Module = "CMS"
  13. )
  14. func RegeditPlugin(g *ghttp.RouterGroup) (err error) {
  15. g.Group("/cms", func(group *ghttp.RouterGroup) {
  16. group.Bind(
  17. video.NewV1(),
  18. category.NewV1(),
  19. collect.NewV1(),
  20. )
  21. })
  22. g.Group("/api/cms", func(group *ghttp.RouterGroup) {
  23. group.Bind(
  24. api.NewV1(),
  25. )
  26. })
  27. return
  28. }