diff --git a/src/backends/backend.js b/src/backends/backend.js index 1fbafcb8e4f8..6be811f93419 100644 --- a/src/backends/backend.js +++ b/src/backends/backend.js @@ -14,14 +14,14 @@ import { sanitizeSlug } from "Lib/urlHelper"; import TestRepoBackend from "./test-repo/implementation"; import GitHubBackend from "./github/implementation"; import GitGatewayBackend from "./git-gateway/implementation"; -import { registerBackends, getBackend } from 'Lib/registry'; +import { registerBackend, getBackend } from 'Lib/registry'; /** * Register internal backends */ -registerBackends('git-gateway', GitGatewayBackend); -registerBackends('github', GitHubBackend); -registerBackends('test-repo', TestRepoBackend); +registerBackend('git-gateway', GitGatewayBackend); +registerBackend('github', GitHubBackend); +registerBackend('test-repo', TestRepoBackend); class LocalStorageAuthStore { diff --git a/src/lib/registry.js b/src/lib/registry.js index 55c1d40e23d8..b37cf73332d4 100644 --- a/src/lib/registry.js +++ b/src/lib/registry.js @@ -25,7 +25,7 @@ export default { getEditorComponents, registerWidgetValueSerializer, getWidgetValueSerializer, - registerBackends, + registerBackend, getBackend, }; @@ -94,9 +94,9 @@ export function getWidgetValueSerializer(widgetName) { /** * Backend API */ -export function registerBackends(name, BackendClass) { +export function registerBackend(name, BackendClass) { if (!name || !BackendClass) { - console.error("Backend parameters invalid. example: CMS.registerBackends('myBackend', BackendClass)"); + console.error("Backend parameters invalid. example: CMS.registerBackend('myBackend', BackendClass)"); } else if (registry.backends[name]) { console.error(`Backend [${ name }] already registered. Please choose a different name.`); } else {