1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-25 05:23:13 +03:00

Use _matrix prefix for terms API

This commit is contained in:
David Baker
2019-07-15 13:51:39 +01:00
parent c74e0bb6b3
commit 8004e82c50

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 + '/terms';
return baseUrl + httpApi.PREFIX_IDENTITY_V2 + '_matrix/v2/integrations/v1/terms';
case SERVICE_TYPES.IM:
return baseUrl + '/terms';
return baseUrl + '/_matrix/integrations/v1/terms';
default:
throw new Error('Unsupported service type');
}