MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / isScreenRoute

Function isScreenRoute

src/ui-server/api/screens.ts:223–225  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

221 * Entry points, which is the list of what a request or a user can arrive at.
222 */
223function isScreenRoute(route: Node): boolean {
224 return route.name.startsWith('/') && !`/${route.filePath}`.includes('/server/api/');
225}
226
227export async function buildScreens(cg: CodeGraph, projectRoot: string): Promise<WireScreensPayload> {
228 const started = Date.now();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected