diff --git a/lib/core/config.js b/lib/core/config.js index c2f21d55..3aa06488 100644 --- a/lib/core/config.js +++ b/lib/core/config.js @@ -309,7 +309,7 @@ Config.prototype.loadCommunicationConfigFile = function() { Config.prototype.loadWebServerConfigFile = function() { var configObject = { - "enabled": true, "host": "localhost", "port": 8000 + "enabled": true, "host": "localhost", "port": 8000, "enableCatchAll": true }; let configFilePath = this._getFileOrOject(this.configDir, 'webserver', 'webserver'); diff --git a/lib/core/fs.js b/lib/core/fs.js index 4e2e2179..87757dc2 100644 --- a/lib/core/fs.js +++ b/lib/core/fs.js @@ -91,6 +91,14 @@ function tmpDir() { return utils.joinPath(os.tmpdir(), ...arguments); } +function readdirSync() { + return fs.readdirSync.apply(fs.readdirSync, arguments); +} + +function readdir() { + return fs.readdir.apply(fs.readdirSync, arguments); +} + module.exports = { mkdirpSync, mkdirp, @@ -111,5 +119,7 @@ module.exports = { embarkPath, dappPath, createWriteStream, - tmpDir + tmpDir, + readdirSync, + readdir }; diff --git a/lib/core/plugin.js b/lib/core/plugin.js index 86edefd6..9ea3df52 100644 --- a/lib/core/plugin.js +++ b/lib/core/plugin.js @@ -208,7 +208,7 @@ Plugin.prototype.registerActionForEvent = function(eventName, cb) { Plugin.prototype.registerAPICall = function(method, endpoint, cb) { console.dir("registerAPICall " + method + " " + endpoint); this.apiCalls.push({method: method, endpoint: endpoint, cb: cb}); - this.pluginTypes.push('apiCalls'); + this.addPluginType('apiCalls'); }; Plugin.prototype.runFilePipeline = function() { diff --git a/lib/modules/webserver/backend/assets/images/dade.jpg b/lib/modules/webserver/backend/assets/images/dade.jpg new file mode 100644 index 00000000..c41b2142 Binary files /dev/null and b/lib/modules/webserver/backend/assets/images/dade.jpg differ diff --git a/lib/modules/webserver/backend/contracts/view.html b/lib/modules/webserver/backend/contracts/view.html index 3b899f2a..ac8223fb 100644 --- a/lib/modules/webserver/backend/contracts/view.html +++ b/lib/modules/webserver/backend/contracts/view.html @@ -112,7 +112,7 @@