Browse Source

fix requires...again...

master
John Shaver 3 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 @@
1 1
 let fs = require('fs');
2 2
 
3 3
 let bodyParser = require('body-parser');
4
-let outbound, getTemplates, errorSender;
4
+let outbound;
5 5
 
6
+let getTemplates = require('./templates');
7
+let errorSender = require('./errorSender');
6 8
 exports.register = function() {
7 9
   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