change route name

This commit is contained in:
Jonathan Rainville 2018-08-01 12:53:37 -04:00 committed by Pascal Precht
parent 177d52a655
commit 640ec0b761
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
3 changed files with 3 additions and 3 deletions

View File

@ -69,7 +69,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}), () => {});

View File

@ -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 => {

View File

@ -6,7 +6,7 @@ const express = require('express');
const fs = require('../../core/fs'); const fs = require('../../core/fs');
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');