From 640ec0b761bc38b2425a818864f398ea10950671 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 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/core/processes/processLauncher.js b/lib/core/processes/processLauncher.js index 3d60390a..07d50017 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 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 a4ef7b87..4fae9d73 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');