Use path embark-api
This commit is contained in:
parent
8d8d3db316
commit
57874bac71
|
@ -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: [] };
|
||||
|
||||
|
|
|
@ -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}), () => {});
|
||||
|
|
|
@ -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) => {
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue