(path)
| 120 | |
| 121 | const rs = app.get('routers') |
| 122 | const find_childs = (path) => { |
| 123 | return (rs[path] || []).map((r) => { |
| 124 | const childs = find_childs((path == '@' ? '' : path) + r.path) |
| 125 | return childs.length > 0 ? { ...r, childRoutes: [ ...(r.childRoutes||[]), ...childs ] } : r |
| 126 | }) |
| 127 | } |
| 128 | const routers = find_childs('@') |
| 129 | |
| 130 | const root = app.get('root_component').reduce((children, render) => { |