* A route a user can be ON, as opposed to one a request goes to. * * Every server framework names its routes with the HTTP method that reaches * them — `GET /api/orders`, `POST /api/users/login`, `USE /api/products`, * `ANY /api/users`, `GET *` — while a screen is named by its path alone. * Nux
(route: Node)
| 221 | * Entry points, which is the list of what a request or a user can arrive at. |
| 222 | */ |
| 223 | function isScreenRoute(route: Node): boolean { |
| 224 | return route.name.startsWith('/') && !`/${route.filePath}`.includes('/server/api/'); |
| 225 | } |
| 226 | |
| 227 | export async function buildScreens(cg: CodeGraph, projectRoot: string): Promise<WireScreensPayload> { |
| 228 | const started = Date.now(); |
nothing calls this directly
no outgoing calls
no test coverage detected