Skip to content

Commit

Permalink
feat(deployer): Routes receiving state
Browse files Browse the repository at this point in the history
Co-authored-by: Luiz Felipe Gonçalves <[email protected]>
  • Loading branch information
YuriRDev and lffg committed Apr 23, 2024
1 parent e52edd5 commit cba1322
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ctl/src/http/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ pub async fn run_server(discovery_handle: DiscoveryHandle) {
.route("/worker/metrics", post(worker::push_metrics))
.route(
"/deploy",
post(deployer::deploy).with_state(discovery_handle),
);
post(deployer::deploy),
)
.with_state(discovery_handle);

let listener = tokio::net::TcpListener::bind("0.0.0.0:3000").await.unwrap();
info!("HTTP listening at port 3000");
Expand Down

0 comments on commit cba1322

Please sign in to comment.