Use path embark-api

This commit is contained in:
Anthony Laibe 2018-08-01 10:28:25 +01:00 committed by Pascal Precht
parent 8d8d3db316
commit 57874bac71
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
5 changed files with 6 additions and 6 deletions

View File

@ -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: [] };

View File

@ -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}), () => {});

View File

@ -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) => {

View File

@ -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));
}

View File

@ -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));
}