mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-10 22:16:20 +00:00
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', {});
|
let plugin = this.plugins.createPlugin('dashboard', {});
|
||||||
plugin.registerAPICall(
|
plugin.registerAPICall(
|
||||||
'ws',
|
'ws',
|
||||||
'/embark/dashboard',
|
'/embark-api/dashboard',
|
||||||
(ws, req) => {
|
(ws, req) => {
|
||||||
let dashboardState = { contractsState: [], environment: "", status: "", availableServices: [] };
|
let dashboardState = { contractsState: [], environment: "", status: "", availableServices: [] };
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ Logger.prototype.registerAPICall = function (plugins) {
|
|||||||
let plugin = plugins.createPlugin('dashboard', {});
|
let plugin = plugins.createPlugin('dashboard', {});
|
||||||
plugin.registerAPICall(
|
plugin.registerAPICall(
|
||||||
'ws',
|
'ws',
|
||||||
'/embark/logs',
|
'/embark-api/logs',
|
||||||
(ws, req) => {
|
(ws, req) => {
|
||||||
self.events.on("log", function(logLevel, logMsg) {
|
self.events.on("log", function(logLevel, logMsg) {
|
||||||
ws.send(JSON.stringify({msg: logMsg, msg_clear: logMsg.stripColors, logLevel: logLevel}), () => {});
|
ws.send(JSON.stringify({msg: logMsg, msg_clear: logMsg.stripColors, logLevel: logLevel}), () => {});
|
||||||
|
@ -290,7 +290,7 @@ class BlockchainConnector {
|
|||||||
let plugin = self.plugins.createPlugin('blockchain', {});
|
let plugin = self.plugins.createPlugin('blockchain', {});
|
||||||
plugin.registerAPICall(
|
plugin.registerAPICall(
|
||||||
'get',
|
'get',
|
||||||
'/embark/blockchain/accounts',
|
'/embark-api/blockchain/accounts',
|
||||||
(req, res) => {
|
(req, res) => {
|
||||||
let results = [];
|
let results = [];
|
||||||
self.getAccounts((err, addresses) => {
|
self.getAccounts((err, addresses) => {
|
||||||
|
@ -86,7 +86,7 @@ class ContractsManager {
|
|||||||
let plugin = this.plugins.createPlugin('deployment', {});
|
let plugin = this.plugins.createPlugin('deployment', {});
|
||||||
plugin.registerAPICall(
|
plugin.registerAPICall(
|
||||||
'get',
|
'get',
|
||||||
'/embark/contract/:contractName',
|
'/embark-api/contract/:contractName',
|
||||||
(req, res) => {
|
(req, res) => {
|
||||||
self.events.request('contracts:contract', req.params.contractName, res.send.bind(res));
|
self.events.request('contracts:contract', req.params.contractName, res.send.bind(res));
|
||||||
}
|
}
|
||||||
@ -94,7 +94,7 @@ class ContractsManager {
|
|||||||
|
|
||||||
plugin.registerAPICall(
|
plugin.registerAPICall(
|
||||||
'get',
|
'get',
|
||||||
'/embark/contracts',
|
'/embark-api/contracts',
|
||||||
(req, res) => {
|
(req, res) => {
|
||||||
self.events.request('contracts:all', null, res.send.bind(res));
|
self.events.request('contracts:all', null, res.send.bind(res));
|
||||||
}
|
}
|
||||||
|
@ -34,7 +34,7 @@ class Pipeline {
|
|||||||
let plugin = this.plugins.createPlugin('deployment', {});
|
let plugin = this.plugins.createPlugin('deployment', {});
|
||||||
plugin.registerAPICall(
|
plugin.registerAPICall(
|
||||||
'get',
|
'get',
|
||||||
'/embark/files/contracts/',
|
'/embark-api/files/contracts/',
|
||||||
(req, res) => {
|
(req, res) => {
|
||||||
self.events.request('files:contract', req.query.filename, res.send.bind(res));
|
self.events.request('files:contract', req.query.filename, res.send.bind(res));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user