pub fn module(router: &mut windmark::router::Router) { crate::route::track_mount( router, "/directory", "A map of all publicly available routes on this Gemini capsule", |context| { crate::response::success( &format!( "# Directory\n\nA map of all publicly available routes on this \ Gemini capsule\n\n{}", (*crate::route::ROUTES.lock().unwrap()) .iter() .map(|(r, d)| format!("=> {} {}", r, d.description)) .collect::>() .join("\n") ), &context, ) }, ); }