|
@@ -57,6 +57,7 @@ function Crowi(rootdir) {
|
|
|
this.syncPageStatusService = null;
|
|
this.syncPageStatusService = null;
|
|
|
this.cdnResourcesService = new CdnResourcesService();
|
|
this.cdnResourcesService = new CdnResourcesService();
|
|
|
this.interceptorManager = new InterceptorManager();
|
|
this.interceptorManager = new InterceptorManager();
|
|
|
|
|
+ this.boltService = null;
|
|
|
this.xss = new Xss();
|
|
this.xss = new Xss();
|
|
|
|
|
|
|
|
this.tokens = null;
|
|
this.tokens = null;
|
|
@@ -116,6 +117,7 @@ Crowi.prototype.init = async function() {
|
|
|
this.setupImport(),
|
|
this.setupImport(),
|
|
|
this.setupPageService(),
|
|
this.setupPageService(),
|
|
|
this.setupSyncPageStatusService(),
|
|
this.setupSyncPageStatusService(),
|
|
|
|
|
+ this.setupBoltService(),
|
|
|
]);
|
|
]);
|
|
|
|
|
|
|
|
// globalNotification depends on slack and mailer
|
|
// globalNotification depends on slack and mailer
|
|
@@ -654,4 +656,11 @@ Crowi.prototype.setupSyncPageStatusService = async function() {
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+Crowi.prototype.setupBoltService = async function() {
|
|
|
|
|
+ const BoltService = require('../service/bolt');
|
|
|
|
|
+ if (this.boltService == null) {
|
|
|
|
|
+ this.boltService = new BoltService(this);
|
|
|
|
|
+ }
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
module.exports = Crowi;
|
|
module.exports = Crowi;
|