@kaspernj/api-maker 1.0.174 → 1.0.175

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/package.json +1 -1
  2. package/src/config.js +5 -1
package/package.json CHANGED
@@ -16,7 +16,7 @@
16
16
  ]
17
17
  },
18
18
  "name": "@kaspernj/api-maker",
19
- "version": "1.0.174",
19
+ "version": "1.0.175",
20
20
  "description": "",
21
21
  "main": "index.js",
22
22
  "repository": {
package/src/config.js CHANGED
@@ -12,7 +12,11 @@ class ApiMakerConfig {
12
12
  }
13
13
 
14
14
  getHost() {
15
- return this.global.host
15
+ const host = this.global.host
16
+
17
+ if (typeof host == "function") return host()
18
+
19
+ return host
16
20
  }
17
21
 
18
22
  getRouteDefinitions() {