MM-25073/MM-25074: local mode for getGroupsByChannel and getGroupsByTeam (#14668)

* local mode for getGroupsByChannel

* local mode for getGroupsByTeam
Этот коммит содержится в:
Ashish Bhate
2020-06-01 15:31:05 +05:30
коммит произвёл GitHub
родитель 2af00f73c0
Коммит 8d4da8b968
3 изменённых файлов: 65 добавлений и 37 удалений

Просмотреть файл

@@ -287,12 +287,15 @@ func InitLocal(configservice configservice.ConfigService, globalOptionsFunc app.
api.BaseRoutes.License = api.BaseRoutes.ApiRoot.PathPrefix("/license").Subrouter()
api.BaseRoutes.Groups = api.BaseRoutes.ApiRoot.PathPrefix("/groups").Subrouter()
api.InitTeamLocal()
api.InitChannelLocal()
api.InitLicenseLocal()
api.InitConfigLocal()
api.InitCommandLocal()
api.InitPluginLocal()
api.InitGroupLocal()
root.Handle("/api/v4/{anything:.*}", http.HandlerFunc(api.Handle404))