From 41204f7c95afe7baf069638226b6cd5d44cdea05 Mon Sep 17 00:00:00 2001 From: neo773 Date: Mon, 13 Jan 2025 16:21:39 +0530 Subject: [PATCH] fix endpoint --- screenpipe-app-tauri/src-tauri/src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/screenpipe-app-tauri/src-tauri/src/main.rs b/screenpipe-app-tauri/src-tauri/src/main.rs index 4cabc14bb..54f96129a 100755 --- a/screenpipe-app-tauri/src-tauri/src/main.rs +++ b/screenpipe-app-tauri/src-tauri/src/main.rs @@ -670,7 +670,10 @@ async fn main() { if pipe["enabled"].as_bool().unwrap_or(false) { if let Some(id) = pipe["id"].as_str() { let _ = reqwest::Client::new() - .post(format!("http://localhost:3030/pipes/stop/{}", id)) + .post(format!("http://localhost:3030/pipes/disable")) + .json(&serde_json::json!({ + "pipe_id": id + })) .send() .await; }