From da1d36739f843c0091a294b21d0b5a88c665ccdc Mon Sep 17 00:00:00 2001 From: Jonas Rabenstein Date: Thu, 13 Aug 2026 05:07:38 +0200 Subject: [PATCH] web: use Form and Query from axum_extra Otherwise Vec can not be deserialized. --- Cargo.toml | 2 +- src/web.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f5459ae..53ab130 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ edition = "2024" [dependencies] anyhow = "1" axum = { version = "0.8", features = [ "macros" ] } -axum-extra = { version = "0.10", features = ["cookie"] } +axum-extra = { version = "0.10", features = ["cookie", "form", "query"] } chrono = { version = "0.4", features = ["serde"] } dotenvy = "0.15" rand = "0.9" diff --git a/src/web.rs b/src/web.rs index c4fae09..aa8cabe 100644 --- a/src/web.rs +++ b/src/web.rs @@ -3,11 +3,11 @@ use std::collections::{HashMap, HashSet}; use chrono::{DateTime, Utc}; use axum::{ - extract::{Form, Path, Query, State}, + extract::{Path, State}, http::StatusCode, response::{Html, Redirect}, }; -use axum_extra::extract::cookie::CookieJar; +use axum_extra::extract::{Form, Query, cookie::CookieJar}; use serde::Deserialize; use serde_json::Value; use sqlx::Row;