Browse Source

fix haraka requires

master
John Shaver 10 months ago
parent
commit
9287e9f7c0
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      index.js

+ 4
- 4
index.js View File

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

let bodyParser = require('body-parser');
let outbound = require('./outbound');

let getTemplates = require('./templates');
let errorSender = require('./errorSender');
let outbound, getTemplates, 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