Remove Test command
This commit is contained in:
parent
9b1df02819
commit
dddef6b3b5
2 changed files with 0 additions and 39 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue