Browse Source

Try logging info again

master
John Shaver 10 months ago
parent
commit
549d3a5a98
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      index.js

+ 2
- 1
index.js View File

@@ -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…
Cancel
Save