router.go 537 B

12345678910111213141516171819202122
  1. package admin
  2. import (
  3. "crm-api/api/admin/vtiger"
  4. "crm-api/api/admin/zoho"
  5. "github.com/gin-gonic/gin"
  6. )
  7. func AddRouter(router *gin.Engine) {
  8. pbxGroup := router.Group("/pbx")
  9. // swagger.Enable(pbxGroup) // 20230419 pms 注释
  10. //pbxGroup.GET("/the42/password", getPassword)
  11. // pbxGroup.Use(middleware.JWTAuth(configs.ConfigGlobal.IdentityKey))
  12. // pbxGroup.Use(gin.BasicAuth(auth.AuthAccounts)) // 20250103 crm 注释
  13. // auth.AddRouter(pbxGroup) // 20230419 pms 注释
  14. vtiger.AddRouter(pbxGroup)
  15. zoho.AddRouter(pbxGroup)
  16. }