changed end point
This commit is contained in:
@@ -225,7 +225,7 @@ async fn register_with_server(base_url: &str) -> Result<(i32, String), Box<dyn E
|
|||||||
// Try to register (will retry on failure)
|
// Try to register (will retry on failure)
|
||||||
loop {
|
loop {
|
||||||
println!("Attempting to register with server...");
|
println!("Attempting to register with server...");
|
||||||
let url = format!("{}/monitoring/register", base_url);
|
let url = format!("{}/monitoring/register-agent-by-id", base_url);
|
||||||
match client.post(&url).json(®istration).send().await {
|
match client.post(&url).json(®istration).send().await {
|
||||||
Ok(resp) if resp.status().is_success() => {
|
Ok(resp) if resp.status().is_success() => {
|
||||||
println!("✅ Successfully registered with server.");
|
println!("✅ Successfully registered with server.");
|
||||||
|
Reference in New Issue
Block a user