diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 42a6a0b..1a91743 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,6 +3,8 @@ + + diff --git a/package.json b/package.json index 88bf804..4866a52 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bfastfunction", - "version": "1.7.1-alpha", + "version": "1.7.2", "private": true, "scripts": { "start": "node src/index.js", diff --git a/src/faas.js b/src/faas.js index a72306e..b6e9cc5 100644 --- a/src/faas.js +++ b/src/faas.js @@ -26,9 +26,9 @@ _app.use('/names', function (request, response) { _faaSController.getFunctions().then(functions => { if (typeof functions === 'object') { Object.keys(functions).forEach(functionName => { - if (typeof functions[functionName] === 'function') { - _app.use(`/functions/${functionName}`, functions[functionName]); - } + // if (typeof functions[functionName] === 'function' || Array.isArray(functions[functionName])) { + _app.use(`/functions/${functionName}`, functions[functionName]); + // } }); } else { throw {message: 'It\'s not object'};