@blaasvaer/frmwrk 0.3.2 → 0.3.4

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.
package/controllers.js CHANGED
@@ -23,6 +23,7 @@ function installControllers ( config ) {
23
23
  if ( controller ) {
24
24
  if ( typeof controller.install === 'function' ) {
25
25
  // Add controller if it exports install
26
+ this.controllers = {};
26
27
  this.controllers[ file.split('.')[0] ] = controller;
27
28
 
28
29
  // Trigger install script for controller
package/index.js CHANGED
@@ -50,7 +50,7 @@ if ( process.env.NODE_ENV !== 'production') {
50
50
  FW = function ( config ) {
51
51
  _config = config || {};
52
52
 
53
- hostname = _config.hostname ? _config.hostname : '0.0.0.0';
53
+ hostname = config.hostname ? config.hostname : '0.0.0.0';
54
54
 
55
55
  /**
56
56
  * Set the Controller
package/models.js CHANGED
@@ -24,6 +24,7 @@ function installModels ( config ) {
24
24
  /**
25
25
  * Add model if it exports install
26
26
  */
27
+ this.models = {};
27
28
  this.models[ file.split('.')[0] ] = model;
28
29
 
29
30
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blaasvaer/frmwrk",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "description": "My personal Node framework",
5
5
  "main": "index.js",
6
6
  "scripts": {