Try logging info again
This commit is contained in:
parent
2ee0a8a85f
commit
549d3a5a98
1 changed files with 2 additions and 1 deletions
3
index.js
3
index.js
|
@ -7,10 +7,11 @@ let getTemplates = require('./templater');
|
|||
let errorSender = require('./errorSender');
|
||||
exports.register = function() {
|
||||
outbound = this.haraka_require('./outbound');
|
||||
let plugin = this;
|
||||
this.register_hook('hook_init_http', function(next, server) {
|
||||
server.http.app.use('/webSend', setupRoutes(server.http.express.Router()));
|
||||
server.http.app.get('/test', (req, res) => res.send("HELLO!"));
|
||||
console.log(server.http.app._router.stack);
|
||||
plugin.loginfo(server.http.app._router.stack);
|
||||
next();
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue