Apis
@zely-js/core
Core.createVirtualPage()
core.createVirtualPage()
Creates virtual page.
Typescript
createVirtualPage('main.ts', [GET(() => {})]);
JSON
{
"filename": "main.ts", // filename
"id": -1, // id of page
"path": "main", // parsed path
"regex": "/^/main/?$/i", // path regexp
"params": [], // path params
"module": {
"__isVirtual__": true,
"isLoaded": true,
"type": "export-default",
"data": "[Array]" // module
}
}