v0.0.3
RustBox CI / rustbox (push) Waiting to run

This commit is contained in:
Mateusz Gruszczyński committed 2026-10-30 00:12:09 +01:00
1 parent a238ff5e23
commit 93762fe9ef
65 files changed
+5420 -2792

No files matched your search

+3 -1
View File
@@ -182,6 +182,8 @@ pub fn create_router(
.merge(protected_auth);
// Protected data routes (auth_guard + CSRF).
// Multipart framing needs a small allowance on top of the configured per-file limit.
let attachment_body_limit = config.max_attachment_size_bytes().saturating_add(1024 * 1024);
let protected_data = Router::new()
.route(
"/folders",
@@ -238,7 +240,7 @@ pub fn create_router(
)
.route(
"/drafts/{draft_id}/attachments",
post(attachments::upload_attachment).layer(DefaultBodyLimit::max(30 * 1024 * 1024)),
post(attachments::upload_attachment).layer(DefaultBodyLimit::max(attachment_body_limit)),
)
.route(
"/drafts/{draft_id}/attachments/{attachment_id}",