Skip to content

Commit

Permalink
feat(iads): serve iads status (#20931)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongbo-miao authored Nov 30, 2024
1 parent b34914f commit 7074234
Show file tree
Hide file tree
Showing 6 changed files with 396 additions and 18 deletions.
11 changes: 4 additions & 7 deletions api-rust/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
use axum::{
routing::get,
Router,
};
use tracing::info;

#[tokio::main]
Expand All @@ -10,10 +6,11 @@ async fn main() {
.with_max_level(tracing::Level::TRACE)
.init();

let app = Router::new()
.route("/", get(root));
let app = axum::Router::new().route("/", axum::routing::get(root));

let listener = tokio::net::TcpListener::bind("0.0.0.0:36147").await.unwrap();
let listener = tokio::net::TcpListener::bind("0.0.0.0:36147")
.await
.unwrap();
info!("Server listening on port 36147");

axum::serve(listener, app).await.unwrap();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ IADS_WIZARD_FILE_NAME=iads.WizardFile
IADS_PARAMETER_DEFINITION_FILE_NAME=iads.prn
IADS_CONFIG_FILE_PATH='C:\iads\iads.iadsConfig'
IADS_DATA_OUTPUT_DIR='C:\iads\output'
API_SERVER_PORT=2737
1 change: 1 addition & 0 deletions data-visualization/iads/zeromq-iads-bridge/.env.production
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ IADS_WIZARD_FILE_NAME=iads.WizardFile
IADS_PARAMETER_DEFINITION_FILE_NAME=iads.prn
IADS_CONFIG_FILE_PATH='C:\iads\iads.iadsConfig'
IADS_DATA_OUTPUT_DIR='C:\iads\output'
API_SERVER_PORT=2737
Loading

0 comments on commit 7074234

Please sign in to comment.