fix: Fix attachment upload size

This commit is contained in:
2026-03-04 00:29:41 +00:00
parent b93d4548d4
commit 519f7d58bb
2 changed files with 38 additions and 29 deletions

View File

@@ -120,6 +120,7 @@ async fn main() {
.route("/__attachments/{id}", get(handlers::attachments::serve_attachment))
.nest("/__dungeon", handlers::router(&app_state)) // I'll create a single `handlers::router`
.with_state(app_state.clone())
.layer(axum::extract::DefaultBodyLimit::disable())
.layer(tower_http::trace::TraceLayer::new_for_http());
let listener = TcpListener::bind(&addr).await.unwrap();