diff options
Diffstat (limited to 'webapp/client')
-rw-r--r-- | webapp/client/client.jsx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/webapp/client/client.jsx b/webapp/client/client.jsx index 398ce4f83..88f910d46 100644 --- a/webapp/client/client.jsx +++ b/webapp/client/client.jsx @@ -1441,6 +1441,15 @@ export default class Client { end(this.handleResponse.bind(this, 'getMyChannelMembers', success, error)); } + getChannelByName(channelName, success, error) { + request. + get(`${this.getChannelsRoute()}/name/${channelName}`). + set(this.defaultHeaders). + type('application/json'). + accept('application/json'). + end(this.handleResponse.bind(this, 'getChannelByName', success, error)); + } + getChannelStats(channelId, success, error) { request. get(`${this.getChannelNeededRoute(channelId)}/stats`). |