Fix for the 'Requested resource /app/conf/reader/main.js cannot be found' exception on startup

revert-dabc3590
kamidu 9 years ago
parent e0d9e1659c
commit bbbaac4d28

@ -18,7 +18,7 @@
function onRequest(context){
var viewModel = {};
var devicemgtProps = require("/app/conf/reader/main.js")["conf"];
var devicemgtProps = require("/app/modules/conf-reader/main.js")["conf"];
viewModel.hostName = devicemgtProps["httpsURL"];
return viewModel;
}

@ -28,7 +28,7 @@ function onRequest(context) {
}
});
var userModule = require("/app/modules/business-controllers/user.js")["userModule"];
var mdmProps = require('/app/conf/reader/main.js')["conf"];
var mdmProps = require("/app/modules/conf-reader/main.js")["conf"];
var constants = require("/app/modules/constants.js");
var uiPermissions = userModule.getUIPermissions();
context["permissions"] = uiPermissions;

@ -18,7 +18,7 @@
function onRequest(context){
var viewModel = {};
var devicemgtProps = require("/app/conf/reader/main.js")["conf"];
var devicemgtProps = require("/app/modules/conf-reader/main.js")["conf"];
viewModel.hostName = devicemgtProps["httpsURL"];
return viewModel;
}
Loading…
Cancel
Save