mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-09 13:36:14 +00:00
change route name
This commit is contained in:
parent
53b8787156
commit
385f8ea1cf
@ -56,7 +56,7 @@ class ProcessLauncher {
|
|||||||
const self = this;
|
const self = this;
|
||||||
self.embark.registerAPICall(
|
self.embark.registerAPICall(
|
||||||
'ws',
|
'ws',
|
||||||
'/embark/process-logs/' + self.name,
|
'/embark-api/process-logs/' + self.name,
|
||||||
(ws, _req) => {
|
(ws, _req) => {
|
||||||
self.events.on('log-' + self.name, function(logLevel, msg) {
|
self.events.on('log-' + self.name, function(logLevel, msg) {
|
||||||
ws.send(JSON.stringify({msg, msg_clear: msg.stripColors, logLevel}), () => {});
|
ws.send(JSON.stringify({msg, msg_clear: msg.stripColors, logLevel}), () => {});
|
||||||
|
@ -15,7 +15,7 @@ class ProcessManager {
|
|||||||
self.plugin = this.plugins.createPlugin('processManager', {});
|
self.plugin = this.plugins.createPlugin('processManager', {});
|
||||||
self.plugin.registerAPICall(
|
self.plugin.registerAPICall(
|
||||||
'get',
|
'get',
|
||||||
'/embark/processes',
|
'/embark-api/processes',
|
||||||
(req, res) => {
|
(req, res) => {
|
||||||
let parsedProcesses = {};
|
let parsedProcesses = {};
|
||||||
Object.keys(self.processes).forEach(processName => {
|
Object.keys(self.processes).forEach(processName => {
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
let serveStatic = require('serve-static');
|
|
||||||
const {canonicalHost, defaultHost, dockerHostSwap} = require('../../utils/host');
|
const {canonicalHost, defaultHost, dockerHostSwap} = require('../../utils/host');
|
||||||
require('http-shutdown').extend();
|
require('http-shutdown').extend();
|
||||||
var express = require('express');
|
var express = require('express');
|
||||||
var cors = require('cors')
|
var cors = require('cors');
|
||||||
let path = require('path');
|
let path = require('path');
|
||||||
var expressWebSocket = require('express-ws');
|
var expressWebSocket = require('express-ws');
|
||||||
var bodyParser = require('body-parser');
|
var bodyParser = require('body-parser');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user