add console support to the api
This commit is contained in:
parent
d636687f7b
commit
ee0ce9eac5
|
@ -52,6 +52,10 @@ 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") +
|
||||
|
|
Loading…
Reference in New Issue