moved default sories location and added some proper error handling

This commit is contained in:
2026-05-14 14:51:47 +01:00
parent e5a3d0d7b7
commit ba7985161e
9 changed files with 26 additions and 40 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ pub async fn api_process
// Perform this code on a GET request
.map(|state: Arc<Mutex<DataToSend>>, tx_handle: Sender<(bool,usize)>|
{
info!("GET: {:?}", state);
debug!("GET: {:?}", state);
let reply = state.as_ref();
let _ = tx_handle.send((true,0));
warp::reply::json(&reply) // Send the reply data (data_to_send formatted as JSON)