mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-02-12 23:26:39 +00:00
add console support to the api
This commit is contained in:
parent
308b403c48
commit
c6112ed55e
@ -61,6 +61,10 @@ class Server {
|
||||
});
|
||||
}
|
||||
|
||||
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") + " " + ("http://" + canonicalHost(this.hostname) + ":" + this.port).bold.underline.green);
|
||||
|
Loading…
x
Reference in New Issue
Block a user