diff --git a/src/application/routes/api/mod.rs b/src/application/routes/api/mod.rs index d9a8e29..0ae2caf 100644 --- a/src/application/routes/api/mod.rs +++ b/src/application/routes/api/mod.rs @@ -67,8 +67,14 @@ pub(super) fn router() -> axum::Router { .route("/nearby-cafes", get(cafes::nearby_cafes)) .route("/extract-roaster", post(roasters::extract_roaster)) .route("/extract-roast", post(roasts::extract_roast_info)) - .route("/extract-bag-scan", post(scan::extract_bag_scan)) - .route("/scan", post(scan::submit_scan)) + .route( + "/extract-bag-scan", + post(scan::extract_bag_scan).layer(DefaultBodyLimit::max(10 * 1024 * 1024)), + ) + .route( + "/scan", + post(scan::submit_scan).layer(DefaultBodyLimit::max(10 * 1024 * 1024)), + ) .route("/check-in", post(checkin::submit_checkin)) .route("/cups", get(cups::list_cups).post(cups::create_cup)) .route("/cups/{id}", get(cups::get_cup).delete(cups::delete_cup)) diff --git a/templates/base.html b/templates/base.html index 2e1cebd..0d544cd 100644 --- a/templates/base.html +++ b/templates/base.html @@ -48,12 +48,33 @@ type="module" src="https://cdn.jsdelivr.net/gh/starfederation/datastar@1.0.0-RC.6/bundles/datastar.js" > + {% block head %}{% endblock %} + -{% endblock %} - {% block content %} diff --git a/templates/pages/bag.html b/templates/pages/bag.html index e3640e3..d592f64 100644 --- a/templates/pages/bag.html +++ b/templates/pages/bag.html @@ -99,7 +99,7 @@ {% endif %}