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

Use standard _matrix path for terms endpoints

This commit is contained in:
David Baker
2019-07-22 18:53:36 +01:00
parent b694d53b73
commit fafd6df13e

View File

@@ -34,7 +34,7 @@ function termsUrlForService(serviceType, baseUrl) {
case SERVICE_TYPES.IS: case SERVICE_TYPES.IS:
return baseUrl + httpApi.PREFIX_IDENTITY_V2 + '/terms'; return baseUrl + httpApi.PREFIX_IDENTITY_V2 + '/terms';
case SERVICE_TYPES.IM: case SERVICE_TYPES.IM:
return baseUrl + '/terms'; return baseUrl + '/_matrix/integrations/v1/terms';
default: default:
throw new Error('Unsupported service type'); throw new Error('Unsupported service type');
} }