diff --git a/lib/core/processes/processLauncher.js b/lib/core/processes/processLauncher.js index 3d60390a2..07d500173 100644 --- a/lib/core/processes/processLauncher.js +++ b/lib/core/processes/processLauncher.js @@ -69,7 +69,7 @@ class ProcessLauncher { const self = this; self.embark.registerAPICall( 'ws', - '/embark/process-logs/' + self.name, + '/embark-api/process-logs/' + self.name, (ws, _req) => { self.events.on('log-' + self.name, function(logLevel, msg) { ws.send(JSON.stringify({msg, msg_clear: msg.stripColors, logLevel}), () => {}); diff --git a/lib/core/processes/processManager.js b/lib/core/processes/processManager.js index d3117594b..5e558131e 100644 --- a/lib/core/processes/processManager.js +++ b/lib/core/processes/processManager.js @@ -15,7 +15,7 @@ class ProcessManager { self.plugin = this.plugins.createPlugin('processManager', {}); self.plugin.registerAPICall( 'get', - '/embark/processes', + '/embark-api/processes', (req, res) => { let parsedProcesses = {}; Object.keys(self.processes).forEach(processName => { diff --git a/lib/modules/webserver/server.js b/lib/modules/webserver/server.js index a4ef7b87e..4fae9d738 100644 --- a/lib/modules/webserver/server.js +++ b/lib/modules/webserver/server.js @@ -6,7 +6,7 @@ const express = require('express'); const fs = require('../../core/fs'); require('http-shutdown').extend(); var express = require('express'); -var cors = require('cors') +var cors = require('cors'); let path = require('path'); var expressWebSocket = require('express-ws'); var bodyParser = require('body-parser');