Forge.Routes
Forge.Routes — forge bastion routes
Reads the project's router.march file(s) and prints all registered routes in a formatted table.
Route detection: scans for the comment convention: -- ROUTE: GET /path and also for bare match-arm patterns of the form: (:get, [...]) -> (:post, [...]) -> The two strategies are combined and de-duplicated.
Ported from cmd_bastion_routes.ml.
Types
Functions
fnmainmain(_cap_console : Cap(IO.Console), _cap_fileread : Cap(IO.FileRead), _cap_filewrite : Cap(IO.FileWrite), _cap_process : Cap(IO.Process))#
List all routes in the current Bastion project.
Generate a Routes module with typed path helpers.
Writes lib/<app>_routes.march with one helper function per unique path.
forge bastion.routes --gen