Skip to content

Commit

Permalink
fix: bump the request's body limit
Browse files Browse the repository at this point in the history
  • Loading branch information
tobernguyen committed Dec 3, 2024
1 parent 8ed1470 commit e00b88b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ impl Api {
.route("/metrics", axum::routing::get(routes::metrics))
.route("/healthz", axum::routing::get(routes::healthz))
.route("/solve", axum::routing::post(routes::solve))
.layer(DefaultBodyLimit::max(5 * 1024 * 1024))
.layer(
tower::ServiceBuilder::new().layer(tower_http::trace::TraceLayer::new_for_http()),
)
Expand Down

0 comments on commit e00b88b

Please sign in to comment.