mirror of https://github.com/embarklabs/embark.git
change route name
This commit is contained in:
parent
177d52a655
commit
640ec0b761
|
@ -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}), () => {});
|
||||
|
|
|
@ -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 => {
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue