This commit is contained in:
joe 2025-12-20 20:02:17 -08:00
parent 86a257410c
commit 452e413ede
3 changed files with 14 additions and 2 deletions

View file

@ -0,0 +1 @@
ardent@pinkee.17538:1750983153

View file

@ -1 +1,3 @@
CREATE TABLE IF NOT EXISTS users (
);

View file

@ -82,9 +82,18 @@ async fn handle_manage_feed(
..
} = message;
let command = parse_command(&mut content.as_str());
let mut resp: HashMap<&str, String> = HashMap::new();
Json(HashMap::from([("content", "nee-ope")])).into_response()
let command = parse_command(&mut content.as_str());
let command = match command {
Err(e) => {
resp["content"] = format!("I did not understand: {e}");
return Json(resp).into_response();
}
Ok(c) => c,
};
Json(resp).into_response()
} else {
StatusCode::IM_A_TEAPOT.into_response()
}