[MM-27377] api4/team_local: add updateChannelPrivacy and restoreTeam to local mode (#15201)

* api4/team_local: add update ch privacy to local mode

* api4/team_local: add restoreTeam to local mode

* api4/team: add a test case
Этот коммит содержится в:
Ibrahim Serdar Acikgoz
2020-08-12 18:20:53 +03:00
коммит произвёл GitHub
родитель aa88fb445c
Коммит 5ab06162dc
2 изменённых файлов: 43 добавлений и 25 удалений

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

@@ -21,6 +21,8 @@ func (api *API) InitTeamLocal() {
api.BaseRoutes.Team.Handle("", api.ApiLocal(localDeleteTeam)).Methods("DELETE")
api.BaseRoutes.Team.Handle("/invite/email", api.ApiLocal(localInviteUsersToTeam)).Methods("POST")
api.BaseRoutes.Team.Handle("/patch", api.ApiLocal(patchTeam)).Methods("PUT")
api.BaseRoutes.Team.Handle("/privacy", api.ApiLocal(updateTeamPrivacy)).Methods("PUT")
api.BaseRoutes.Team.Handle("/restore", api.ApiLocal(restoreTeam)).Methods("POST")
api.BaseRoutes.TeamByName.Handle("", api.ApiLocal(getTeamByName)).Methods("GET")
api.BaseRoutes.TeamMembers.Handle("", api.ApiLocal(addTeamMember)).Methods("POST")