move console api call into console

This commit is contained in:
Iuri Matias 2018-03-13 06:46:58 -04:00
parent 72ca40cf89
commit f4fcdb69ff

View File

@ -51,10 +51,6 @@ class Server {
res.send('Welcome to Embark')
});
app.get('/embark/console', function (req, res) {
self.events.request('console:command', req.query.cmd, res.send.bind(res));
});
app.listen(this.port);
this.logger.info(__("webserver available at") +