From 385f8ea1cfd0817268a767f25cbfa543dfde15a0 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Wed, 1 Aug 2018 12:53:37 -0400 Subject: [PATCH] change route name --- lib/core/processes/processLauncher.js | 2 +- lib/core/processes/processManager.js | 2 +- lib/modules/webserver/server.js | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/core/processes/processLauncher.js b/lib/core/processes/processLauncher.js index 5fbecc17..d470ca92 100644 --- a/lib/core/processes/processLauncher.js +++ b/lib/core/processes/processLauncher.js @@ -56,7 +56,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 d3117594..5e558131 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 015b6469..fba96e62 100644 --- a/lib/modules/webserver/server.js +++ b/lib/modules/webserver/server.js @@ -1,8 +1,7 @@ -let serveStatic = require('serve-static'); const {canonicalHost, defaultHost, dockerHostSwap} = require('../../utils/host'); 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');