change get to post
This commit is contained in:
parent
f9d736c0b5
commit
09ff721ba6
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue