1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

Forgot /terms for ISes

and IMs shouldn't have a slash
This commit is contained in:
David Baker
2019-07-10 12:15:31 +01:00
parent 39d4bf1494
commit 52c139dcdc

View File

@@ -32,9 +32,9 @@ const utils = require("./utils");
function termsUrlForService(serviceType, baseUrl) {
switch (serviceType) {
case SERVICE_TYPES.IS:
return baseUrl + httpApi.PREFIX_IDENTITY_V2;
return baseUrl + httpApi.PREFIX_IDENTITY_V2 + '/terms';
case SERVICE_TYPES.IM:
return baseUrl + '/terms/';
return baseUrl + '/terms';
default:
throw new Error('Unsupported service type');
}