@nakedcreativity/cee-ms-node 0.3.4 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +3 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -134,6 +134,9 @@ function ceems(config) {
134
134
  ceems.prototype.load = function(req, res){
135
135
 
136
136
  var path = req._parsedUrl.pathname.substring(1)
137
+ if(path == '')
138
+ path = 'home'
139
+
137
140
  this.site = JSON.parse(fs.readFileSync('./pages/site.json', 'utf8'));
138
141
  //this.pages_map = _.indexBy(this.site.pages, 'url');
139
142
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nakedcreativity/cee-ms-node",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "description": "Cee.ms for Node.js",
5
5
  "main": "index.js",
6
6
  "scripts": {