Move BackendModule import

This commit is contained in:
calzoneman 2016-02-15 17:21:28 -08:00
parent 39e3978161
commit 98d3090c7d
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,6 @@ import IOConfiguration from './configuration/ioconfig';
import WebConfiguration from './configuration/webconfig'; import WebConfiguration from './configuration/webconfig';
import NullClusterClient from './io/cluster/nullclusterclient'; import NullClusterClient from './io/cluster/nullclusterclient';
import session from './session'; import session from './session';
import { BackendModule } from './backend/backendmodule';
import { LegacyModule } from './legacymodule'; import { LegacyModule } from './legacymodule';
var Server = function () { var Server = function () {
@ -63,6 +62,7 @@ var Server = function () {
// backend init // backend init
var initModule; var initModule;
if (Config.get("new-backend")) { if (Config.get("new-backend")) {
const BackendModule = require('./backend/backendmodule').BackendModule;
initModule = new BackendModule(); initModule = new BackendModule();
} else { } else {
initModule = new LegacyModule(); initModule = new LegacyModule();