Browse Source

fix requires...again...

master
John Shaver 10 months ago
parent
commit
a5d19e0153
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      index.js

+ 3
- 3
index.js View File

@@ -1,12 +1,12 @@
let fs = require('fs');

let bodyParser = require('body-parser');
let outbound, getTemplates, errorSender;
let outbound;

let getTemplates = require('./templates');
let errorSender = require('./errorSender');
exports.register = function() {
outbound = this.haraka_require('./outbound');
getTemplates = this.haraka_require('./templates');
errorSender = this.haraka_require('./errorSender');
this.register_hook('hook_init_http', function(next, server) {
server.http.app.use('/webSend', setupRoutes(server.http.express.Router()));
next();

Loading…
Cancel
Save