diff --git a/src/agenda.rs b/src/agenda.rs index ce4c23d7..bfb51f3b 100644 --- a/src/agenda.rs +++ b/src/agenda.rs @@ -682,6 +682,7 @@ pub static INDEX: &str = r#" diff --git a/src/main.rs b/src/main.rs index 0a041385..bcbf6ff9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -21,6 +21,9 @@ async fn handle_agenda_request(req: String) -> anyhow::Result { if req == "/agenda/lang/planning" { return triagebot::agenda::lang_planning().call().await; } + if req == "/agenda/types/planning" { + return triagebot::agenda::types_planning().call().await; + } anyhow::bail!("Unknown agenda; see /agenda for index.") } @@ -53,7 +56,10 @@ async fn serve_req( .body(Body::from(triagebot::agenda::INDEX)) .unwrap()); } - if req.uri.path() == "/agenda/lang/triage" || req.uri.path() == "/agenda/lang/planning" { + if req.uri.path() == "/agenda/lang/triage" + || req.uri.path() == "/agenda/lang/planning" + || req.uri.path() == "/agenda/types/planning" + { match agenda .ready() .await