Skip to content

Commit

Permalink
add ListFrontends to main process
Browse files Browse the repository at this point in the history
  • Loading branch information
Keksoj committed Aug 1, 2024
1 parent 6593ad8 commit 2c85009
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

Expand Down
3 changes: 3 additions & 0 deletions bin/src/command/requests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ impl Server {
})
.into(),
),
RequestType::ListFrontends(filters) => {
Some(ContentType::FrontendList(self.state.list_frontends(filters)).into())
}
_ => None,
}
}
Expand Down

0 comments on commit 2c85009

Please sign in to comment.