zynagent-first application framework

Routes command#

Usage:
  zyn routes [--json]

Inspect the effective route table, including inherited guards and mounted paths.

Example:
  zyn routes

Documentation: zyn docs cli/routes

Prints the application's effective route table with method, normalized path, action, and guard columns:

METHOD PATH       ACTION            GUARDS
GET    /          root
GET    /account   account           authenticated → owns_account
GET    /healthz   zyn.routes.health
PUT    /items/:id put_item

Mounted tables are flattened, inherited guards appear in execution order, and rows are sorted by path and method. Run it from the project root to confirm what the app exposes. Literal route declarations are parsed from source without starting Zig or synchronizing .zyn/framework; computed route tables use the compiled path. With --json, both source inspection and the compiled fallback emit:

{"schema_version":1,"command":"routes","routes":[{"method":"GET","path":"/","action":"root","guards":[]}]}

Each route has string method, normalized path, and display-name action, and an array of string guards in execution order. The array is sorted by path, then method, and is empty for an empty table. Duplicate route validation applies in both output modes.