fix haraka requires
This commit is contained in:
parent
59901ad8df
commit
9287e9f7c0
1 changed files with 4 additions and 4 deletions
8
index.js
8
index.js
|
@ -1,12 +1,12 @@
|
||||||
let fs = require('fs');
|
let fs = require('fs');
|
||||||
|
|
||||||
let bodyParser = require('body-parser');
|
let bodyParser = require('body-parser');
|
||||||
let outbound = require('./outbound');
|
let outbound, getTemplates, errorSender;
|
||||||
|
|
||||||
let getTemplates = require('./templates');
|
|
||||||
let errorSender = require('./errorSender');
|
|
||||||
|
|
||||||
exports.register = function() {
|
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) {
|
this.register_hook('hook_init_http', function(next, server) {
|
||||||
server.http.app.use('/webSend', setupRoutes(server.http.express.Router()));
|
server.http.app.use('/webSend', setupRoutes(server.http.express.Router()));
|
||||||
next();
|
next();
|
||||||
|
|
Loading…
Reference in a new issue