diff --git a/cmd/dashboard/dashboard.js b/cmd/dashboard/dashboard.js index 79a318cc..754fca7a 100644 --- a/cmd/dashboard/dashboard.js +++ b/cmd/dashboard/dashboard.js @@ -30,7 +30,7 @@ class Dashboard { let plugin = this.plugins.createPlugin('dashboard', {}); plugin.registerAPICall( 'ws', - '/embark/dashboard', + '/embark-api/dashboard', (ws, req) => { let dashboardState = { contractsState: [], environment: "", status: "", availableServices: [] }; diff --git a/lib/core/logger.js b/lib/core/logger.js index 149d1eb9..6339a3e6 100644 --- a/lib/core/logger.js +++ b/lib/core/logger.js @@ -25,7 +25,7 @@ Logger.prototype.registerAPICall = function (plugins) { let plugin = plugins.createPlugin('dashboard', {}); plugin.registerAPICall( 'ws', - '/embark/logs', + '/embark-api/logs', (ws, req) => { self.events.on("log", function(logLevel, logMsg) { ws.send(JSON.stringify({msg: logMsg, msg_clear: logMsg.stripColors, logLevel: logLevel}), () => {}); diff --git a/lib/modules/blockchain_connector/index.js b/lib/modules/blockchain_connector/index.js index e23473da..0827f079 100644 --- a/lib/modules/blockchain_connector/index.js +++ b/lib/modules/blockchain_connector/index.js @@ -290,7 +290,7 @@ class BlockchainConnector { let plugin = self.plugins.createPlugin('blockchain', {}); plugin.registerAPICall( 'get', - '/embark/blockchain/accounts', + '/embark-api/blockchain/accounts', (req, res) => { let results = []; self.getAccounts((err, addresses) => { diff --git a/lib/modules/contracts_manager/index.js b/lib/modules/contracts_manager/index.js index a728904e..58fbac20 100644 --- a/lib/modules/contracts_manager/index.js +++ b/lib/modules/contracts_manager/index.js @@ -86,7 +86,7 @@ class ContractsManager { let plugin = this.plugins.createPlugin('deployment', {}); plugin.registerAPICall( 'get', - '/embark/contract/:contractName', + '/embark-api/contract/:contractName', (req, res) => { self.events.request('contracts:contract', req.params.contractName, res.send.bind(res)); } @@ -94,7 +94,7 @@ class ContractsManager { plugin.registerAPICall( 'get', - '/embark/contracts', + '/embark-api/contracts', (req, res) => { self.events.request('contracts:all', null, res.send.bind(res)); } diff --git a/lib/modules/pipeline/index.js b/lib/modules/pipeline/index.js index 9e1273cc..fefbec4e 100644 --- a/lib/modules/pipeline/index.js +++ b/lib/modules/pipeline/index.js @@ -34,7 +34,7 @@ class Pipeline { let plugin = this.plugins.createPlugin('deployment', {}); plugin.registerAPICall( 'get', - '/embark/files/contracts/', + '/embark-api/files/contracts/', (req, res) => { self.events.request('files:contract', req.query.filename, res.send.bind(res)); }