@innet/server 2.0.0-alpha.25 → 2.0.0-alpha.26

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/README.md CHANGED
@@ -345,6 +345,7 @@ export default (
345
345
  </server>
346
346
  )
347
347
  ```
348
+ *default: `INNET_API_PREFIX` || `''`*
348
349
 
349
350
  #### include
350
351
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@innet/server",
3
- "version": "2.0.0-alpha.25",
3
+ "version": "2.0.0-alpha.26",
4
4
  "description": "Create server-side application with innet",
5
5
  "main": "index.js",
6
6
  "module": "index.es6.js",
@@ -14,7 +14,7 @@ import { paramsContext } from '../../../hooks/useParams/useParams.es6.js';
14
14
  const api = () => {
15
15
  const handler = useNewHandler();
16
16
  const { children, props = {}, } = useApp();
17
- const { exclude, include, prefix = '', title = '', version = process.env.INNET_API_VERSION || '0.0.0' } = props, rest = __rest(props, ["exclude", "include", "prefix", "title", "version"]);
17
+ const { exclude, include, prefix = process.env.INNET_API_PREFIX || '', title = '', version = process.env.INNET_API_VERSION || '0.0.0' } = props, rest = __rest(props, ["exclude", "include", "prefix", "title", "version"]);
18
18
  const info = Object.assign(Object.assign({}, rest), { title, version });
19
19
  const endpoints = {};
20
20
  const docs = {
@@ -22,7 +22,7 @@ var innet__default = /*#__PURE__*/_interopDefaultLegacy(innet);
22
22
  const api = () => {
23
23
  const handler = innet.useNewHandler();
24
24
  const { children, props = {}, } = innet.useApp();
25
- const { exclude, include, prefix = '', title = '', version = process.env.INNET_API_VERSION || '0.0.0' } = props, rest = tslib.__rest(props, ["exclude", "include", "prefix", "title", "version"]);
25
+ const { exclude, include, prefix = process.env.INNET_API_PREFIX || '', title = '', version = process.env.INNET_API_VERSION || '0.0.0' } = props, rest = tslib.__rest(props, ["exclude", "include", "prefix", "title", "version"]);
26
26
  const info = Object.assign(Object.assign({}, rest), { title, version });
27
27
  const endpoints = {};
28
28
  const docs = {