You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
Now that the RTS contains config for teams, use GET /teams to get that information so that users will see be able to register as a team (but not yet auto-join rooms, be sent to welcome page or be tracked as a referral).
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,
|
|
});
|
|
}
|
|
}
|