|
|
@@ -42,6 +42,7 @@ function Crowi(rootdir) {
|
|
|
this.xssService = null;
|
|
|
this.aclService = null;
|
|
|
this.appService = null;
|
|
|
+ this.fileUploadService = null;
|
|
|
this.restQiitaAPIService = null;
|
|
|
this.cdnResourcesService = new CdnResourcesService();
|
|
|
this.interceptorManager = new InterceptorManager();
|
|
|
@@ -90,6 +91,7 @@ Crowi.prototype.init = async function() {
|
|
|
this.setupCsrf(),
|
|
|
this.setUpGlobalNotification(),
|
|
|
this.setUpSlacklNotification(),
|
|
|
+ this.setUpFileUpload(),
|
|
|
this.setUpAcl(),
|
|
|
this.setUpCustomize(), // depends on AppService and XssService
|
|
|
this.setUpRestQiitaAPI(),
|
|
|
@@ -496,6 +498,15 @@ Crowi.prototype.setUpApp = function() {
|
|
|
}
|
|
|
};
|
|
|
|
|
|
+/**
|
|
|
+ * setup FileUploadService
|
|
|
+ */
|
|
|
+Crowi.prototype.setUpFileUpload = function() {
|
|
|
+ if (this.fileUploadService == null) {
|
|
|
+ this.fileUploadService = require('../service/file-uploader')(this);
|
|
|
+ }
|
|
|
+};
|
|
|
+
|
|
|
/**
|
|
|
* setup RestQiitaAPIService
|
|
|
*/
|