broken
This commit is contained in:
parent
86a257410c
commit
452e413ede
3 changed files with 14 additions and 2 deletions
1
migrations/.#0001_users.up.sql
Symbolic link
1
migrations/.#0001_users.up.sql
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
ardent@pinkee.17538:1750983153
|
||||
|
|
@ -1 +1,3 @@
|
|||
CREATE TABLE IF NOT EXISTS users (
|
||||
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue