return status ok on requestCrawl

main
Charlotte Som 2024-11-27 08:25:45 +02:00
parent 41450ec342
commit 4b79a621fb
1 changed files with 4 additions and 2 deletions

View File

@ -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"}"#))?)
}