@reldens/server-utils 0.2.0 → 0.3.0

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.
@@ -48,10 +48,10 @@ class AppServerFactory
48
48
  this.app.use(cors());
49
49
  }
50
50
  if(this.useExpressJson){
51
- this.app.use(express.json());
51
+ this.app.use(this.applicationFramework.json());
52
52
  }
53
53
  if(this.useUrlencoded){
54
- this.app.use(bodyParser.urlencoded({extended: true}));
54
+ this.app.use(this.bodyParser.urlencoded({extended: true}));
55
55
  }
56
56
  if('' !== this.trustedProxy){
57
57
  this.app.enable('trust proxy', this.trustedProxy);
@@ -124,7 +124,7 @@ class AppServerFactory
124
124
 
125
125
  async enableServeStatics(app, staticsPath)
126
126
  {
127
- app.use(express.static(staticsPath));
127
+ app.use(this.applicationFramework.static(staticsPath));
128
128
  }
129
129
 
130
130
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@reldens/server-utils",
3
3
  "scope": "@reldens",
4
- "version": "0.2.0",
4
+ "version": "0.3.0",
5
5
  "description": "Reldens - Server Utils",
6
6
  "author": "Damian A. Pastorini",
7
7
  "license": "MIT",