Skip to main content

register

Function register 

Source
pub fn register(router: &mut Router)
Expand description

Register every fs.* method onto router.

Why: mirrors session::protocol::register / task::protocol::register — the one place listing this namespace’s full surface, so serve::build_router stays a one-line call per group. What: registers "fs.list_dir" and "fs.list_projects" (issue #3365’s project-picker roster). Unlike the session.*/task.* groups this takes no shared state: both are pure functions of the filesystem at call time, with no registry to close over. Test: tests::register_wires_fs_list_dir, tests::register_wires_fs_list_projects.