From 4b79a621fb941e059fe52ef925b09115d10b251e Mon Sep 17 00:00:00 2001 From: Charlotte Som Date: Wed, 27 Nov 2024 08:25:45 +0200 Subject: [PATCH] return status ok on requestCrawl --- src/request_crawl.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/request_crawl.rs b/src/request_crawl.rs index bb63e11..1ea2b2f 100644 --- a/src/request_crawl.rs +++ b/src/request_crawl.rs @@ -22,7 +22,7 @@ pub async fn handle_request_crawl( Err(_) => { // TODO: surely we can build out an XRPC abstraction or something return Ok(Response::builder().status(400).body(body_full( - r#"{ "error": "InvalidRequest", "message": "Failed to parse request body" }"#, + r#"{"error":"InvalidRequest","message":"Failed to parse request body"}"#, ))?); } }; @@ -34,5 +34,7 @@ pub async fn handle_request_crawl( } }); - Ok(Response::builder().status(200).body(body_empty())?) + Ok(Response::builder() + .status(200) + .body(body_full(r#"{"status":"ok"}"#))?) }