diff --git a/src/api/controllers/SessionsController.js b/src/api/controllers/SessionsController.js index 31be19f..41b4831 100644 --- a/src/api/controllers/SessionsController.js +++ b/src/api/controllers/SessionsController.js @@ -452,6 +452,8 @@ module.exports = { }); }, startWiregen: function(req, res, next) { + var session = req.body; + startWiregen(session).then(function(argument) { res.send(200, argument); }).catch(function(err) { diff --git a/src/bindings/wiregen/index.js b/src/bindings/wiregen/index.js index 72bd08c..272191f 100644 --- a/src/bindings/wiregen/index.js +++ b/src/bindings/wiregen/index.js @@ -81,7 +81,7 @@ Wiregen.prototype.createWiregenImages = function(session) { return new Promise(function(resolve, reject) { console.log('[Wiregen::createWiregenImages]'); session.wiregenExecutable = path.join(__dirname, '../../../app/wiregen/src'); //Config.xml, config.ini & elecdetect.exe - session.wiregenGrammar = path.join(__dirname, '../../../app/wiregen/src/grammar/grammar-residential.json') + session.wiregenGrammar = path.join(__dirname, '../../../app/wiregen/src/grammar/grammar-nygade.json'); var cwd = process.cwd();