@modular-rest/server 1.5.1 → 1.5.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modular-rest/server",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "description": "a nodejs module based on KOAJS for developing Rest-APIs in a modular solution.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -122,7 +122,7 @@ module.exports = async function createRest(options) {
122
122
  * Plug In KoaStatic
123
123
  */
124
124
  if (options.static) {
125
- app.use(koaStatic(static));
125
+ app.use(koaStatic(options.static));
126
126
  }
127
127
 
128
128
  /**