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 удалений

9
api4/group_local.go Обычный файл
Просмотреть файл

@@ -0,0 +1,9 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
package api4
func (api *API) InitGroupLocal() {
api.BaseRoutes.Channels.Handle("/{channel_id:[A-Za-z0-9]+}/groups", api.ApiLocal(getGroupsByChannel)).Methods("GET")
api.BaseRoutes.Teams.Handle("/{team_id:[A-Za-z0-9]+}/groups", api.ApiLocal(getGroupsByTeam)).Methods("GET")
}