diff --git a/WatcherAgent/src/api.rs b/WatcherAgent/src/api.rs index 0dedf2c..970401a 100644 --- a/WatcherAgent/src/api.rs +++ b/WatcherAgent/src/api.rs @@ -68,7 +68,7 @@ pub async fn register_with_server( // Try to register (will retry on failure) loop { println!("Attempting to register with server..."); - let url = format!("{}/monitoring/register-agent-by-id", base_url); + let url = format!("{}/monitoring/hardware-info", base_url); match client.post(&url).json(®istration).send().await { Ok(resp) if resp.status().is_success() => { println!("✅ Successfully registered with server.");