mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-10 05:56:00 +00:00
add console support to the api
This commit is contained in:
parent
c11b901dba
commit
3a64544a4a
@ -47,6 +47,10 @@ class Server {
|
|||||||
res.send('Welcome to Embark')
|
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);
|
app.listen(this.port);
|
||||||
|
|
||||||
let message = __("webserver available at") +
|
let message = __("webserver available at") +
|
||||||
|
Loading…
x
Reference in New Issue
Block a user