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

SERVICE_TYPES

This commit is contained in:
David Baker
2019-07-10 12:08:13 +01:00
parent 4c713e3387
commit 39d4bf1494

View File

@@ -17,7 +17,7 @@ limitations under the License.
*/ */
"use strict"; "use strict";
import { SERVICETYPES } from './servicetypes'; import { SERVICE_TYPES } from './service-types';
/** /**
* This is an internal module. MatrixBaseApis is currently only meant to be used * This is an internal module. MatrixBaseApis is currently only meant to be used
@@ -31,9 +31,9 @@ const utils = require("./utils");
function termsUrlForService(serviceType, baseUrl) { function termsUrlForService(serviceType, baseUrl) {
switch (serviceType) { switch (serviceType) {
case SERVICETYPES.IS: case SERVICE_TYPES.IS:
return baseUrl + httpApi.PREFIX_IDENTITY_V2; return baseUrl + httpApi.PREFIX_IDENTITY_V2;
case SERVICETYPES.IM: case SERVICE_TYPES.IM:
return baseUrl + '/terms/'; return baseUrl + '/terms/';
default: default:
throw new Error('Unsupported service type'); throw new Error('Unsupported service type');