## Goal Detect HTTP route definitions as first-class symbols in the code graph. ## Scope Detect REST endpoint definitions and create ROUTE nodes + HANDLER edges. ## Per-Framework Patterns | Framework | Pattern | Example | |-----------|---------|--------| | Axum | `#[get("/path")]` | `#[get("/users/:id")]` | | Actix-web | `.route("/path", get(handler))` | `.resource("/users")` | | Rocket | `#[get("/path")]` | `#[get("/users/<id>")]` | | Express | `app.get("/path", handler)` | `router.post("/api/users")` | | FastAPI | `@app.get("/path")` | `@router.post("/users/{id}")` | | Gin | `r.GET("/path", handler)` | `g.POST("/api/users", handler)` | ## Implementation 1. Add `ROUTE` symbol kind 2. Extract route paths from decorators/attributes 3. Create edges: ROUTE → HANDLER → function symbol 4. Store in `edges` table with `DEFINES` kind ## CLI ``` cora routes # List all HTTP routes cora routes --method GET # Filter by method cora routes --prefix /api # Filter by path prefix ``` ## Acceptance - `cora routes` lists detected HTTP endpoints - Routes appear as symbols in brain search - `cora query "/api/users -> *"` traces route to handler ## Depends On - #429 (edges table) - #437 (IMPORTS/IMPLEMENTS extraction — for handler resolution) ## Estimated Effort 1-2 weeks
Activity
ajianaz commentedon Jul 29, 2026
Depends On
store_kg_edges()— populateedgestable #429 — Wire upstore_kg_edges()feat(routes): `cora routes` command + fix route detection (#454)