mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-18 14:44:58 +08:00
16 lines
298 B
JavaScript
16 lines
298 B
JavaScript
|
const q = require('q');
|
||
|
const request = q.nfbind(require('browser-request'));
|
||
|
|
||
|
export default class RtsClient {
|
||
|
constructor(url) {
|
||
|
this._url = url;
|
||
|
}
|
||
|
|
||
|
getTeamsConfig() {
|
||
|
return request({
|
||
|
url: this._url + '/teams',
|
||
|
json: true,
|
||
|
});
|
||
|
}
|
||
|
}
|