MCPcopy Create free account
hub / github.com/DeepNotesApp/DeepNotes / _generateRoutes

Function _generateRoutes

packages/@stdlib/nestjs/src/index.ts:152–172  ·  view source on GitHub ↗
(module: any)

Source from the content-addressed store, hash-verified

150}
151
152function _generateRoutes(module: any) {
153 const children: Routes = [];
154
155 const moduleInfo = getModuleInfo(module);
156
157 for (const childModule of moduleInfo.children ?? []) {
158 const childData = getModuleInfo(childModule);
159
160 if (childData.prefix == null) {
161 continue;
162 }
163
164 children.push({
165 path: childData.prefix,
166 module: childModule as any,
167 children: _generateRoutes(childModule),
168 });
169 }
170
171 return children;
172}
173
174// Module Guards
175

Callers 1

ModuleFunction · 0.85

Calls 1

getModuleInfoFunction · 0.85

Tested by

no test coverage detected