return status ok on requestCrawl
parent
41450ec342
commit
4b79a621fb
|
@ -22,7 +22,7 @@ pub async fn handle_request_crawl(
|
||||||
Err(_) => {
|
Err(_) => {
|
||||||
// TODO: surely we can build out an XRPC abstraction or something
|
// TODO: surely we can build out an XRPC abstraction or something
|
||||||
return Ok(Response::builder().status(400).body(body_full(
|
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"}"#))?)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue