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

* local mode for getGroupsByChannel

* local mode for getGroupsByTeam
This commit is contained in:
Ashish Bhate
2020-06-01 15:31:05 +05:30
committed by GitHub
parent 2af00f73c0
commit 8d4da8b968
3 changed files with 65 additions and 37 deletions

View File

@@ -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))