1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-25 05:23:13 +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";
import { SERVICETYPES } from './servicetypes';
import { SERVICE_TYPES } from './service-types';
/**
* 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) {
switch (serviceType) {
case SERVICETYPES.IS:
case SERVICE_TYPES.IS:
return baseUrl + httpApi.PREFIX_IDENTITY_V2;
case SERVICETYPES.IM:
case SERVICE_TYPES.IM:
return baseUrl + '/terms/';
default:
throw new Error('Unsupported service type');