func Start() { if !g.Config().Http.Enabled { return } addr := g.Config().Http.Listen if addr == "" { return } home.ConfigRoutes() uic.ConfigRoutes() beego.AddFuncMap("member", uic_model.MembersByTeamId) beego.Run(addr) }
func Start() { if !g.Config().Http.Enabled { return } addr := g.Config().Http.Listen if addr == "" { return } home.ConfigRoutes() uic.ConfigRoutes() dashboard.ConfigRoutes() portal.ConfigRoutes() beego.AddFuncMap("member", uic_model.MembersByTeamId) beego.InsertFilter("*", beego.BeforeRouter, cors.Allow(&cors.Options{ AllowAllOrigins: true, })) beego.Run(addr) }