diff --git a/bin/src/cli.rs b/bin/src/cli.rs index 61871da46..ba8b6692a 100644 --- a/bin/src/cli.rs +++ b/bin/src/cli.rs @@ -180,7 +180,10 @@ pub enum SubCmd { #[clap(subcommand)] cmd: ConfigCmd, }, - #[clap(name = "events", about = "receive sozu events about the status of backends")] + #[clap( + name = "events", + about = "receive sozu events about the status of backends" + )] Events, } diff --git a/bin/src/command/requests.rs b/bin/src/command/requests.rs index 5c902189d..20af98388 100644 --- a/bin/src/command/requests.rs +++ b/bin/src/command/requests.rs @@ -121,6 +121,9 @@ impl Server { }) .into(), ), + RequestType::ListFrontends(filters) => { + Some(ContentType::FrontendList(self.state.list_frontends(filters)).into()) + } _ => None, } }