Remove Test command

This commit is contained in:
Joscha 2024-03-30 12:25:52 +01:00
parent 9b1df02819
commit dddef6b3b5
2 changed files with 0 additions and 39 deletions

View file

@ -23,7 +23,6 @@ struct Server {
pub async fn run(tx: mpsc::Sender<Command>, addr: String) -> anyhow::Result<()> {
let app = Router::new()
.route("/test", post(post_test))
.route("/text", post(post_text))
.route("/image", post(post_image).fallback(get_static_file))
.route("/photo", post(post_photo).fallback(get_static_file))
@ -39,10 +38,6 @@ pub async fn run(tx: mpsc::Sender<Command>, addr: String) -> anyhow::Result<()>
Ok(())
}
async fn post_test(server: State<Server>) {
let _ = server.tx.send(Command::Test).await;
}
#[derive(Deserialize)]
struct PostTextForm {
text: String,