diff --git a/Cargo.toml b/Cargo.toml index 26702d2..af01d5e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ documentation = "https://github.com/samply/spot" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -axum = "0.7" +axum = "0.8" clap = { version = "4", features = ["env", "derive"] } serde = { version = "1", features = ["serde_derive"] } serde_json = "1" diff --git a/src/main.rs b/src/main.rs index 0516031..66df4c0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -72,7 +72,7 @@ async fn main() { let mut app = Router::new() .route("/health", get(handler_health)) .route("/beam", post(handle_create_beam_task)) - .route("/beam/:task_id", get(handle_listen_to_beam_tasks)); + .route("/beam/{task_id}", get(handle_listen_to_beam_tasks)); let state = if let Some(url) = CONFIG.catalogue_url.clone() { let extended_json = catalogue::spawn_thing(url, CONFIG.prism_url.clone());