From 09ff721ba6ff33ee43facf3f37b1d88fa53b6551 Mon Sep 17 00:00:00 2001 From: xzeldon Date: Thu, 13 Jul 2023 16:30:19 +0300 Subject: [PATCH] change get to post --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 8a80c7b..fdb5964 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,7 +10,7 @@ use axum::extract::Multipart; use axum::http::StatusCode; use axum::response::IntoResponse; use axum::response::Response; -use axum::routing::get; +use axum::routing::post; use axum::Router; use magick_rust::magick_wand_genesis; use magick_rust::MagickWand; @@ -39,7 +39,7 @@ async fn main() -> io::Result<()> { ))) .serve( Router::new() - .route("/", get(handle_request)) + .route("/", post(handle_request)) .layer(DefaultBodyLimit::disable()) .layer(RequestBodyLimitLayer::new(10 * 1024 * 1024 /* 10mb */)) .layer(tower_http::trace::TraceLayer::new_for_http())