Browse Source

fix haraka requires

master
John Shaver 3 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 @@
1 1
 let fs = require('fs');
2 2
 
3 3
 let bodyParser = require('body-parser');
4
-let outbound = require('./outbound');
5
-
6
-let getTemplates = require('./templates');
7
-let errorSender = require('./errorSender');
4
+let outbound, getTemplates, errorSender;
8 5
 
9 6
 exports.register = function() {
7
+  outbound = this.haraka_require('./outbound');
8
+  getTemplates = this.haraka_require('./templates');
9
+  errorSender = this.haraka_require('./errorSender');
10 10
   this.register_hook('hook_init_http', function(next, server) {
11 11
     server.http.app.use('/webSend', setupRoutes(server.http.express.Router()));
12 12
     next();

Loading…
Cancel
Save