web: use Form and Query from axum_extra

Otherwise Vec can not be deserialized.
This commit is contained in:
Jonas Rabenstein 2026-08-13 05:07:38 +02:00
commit da1d36739f
2 changed files with 3 additions and 3 deletions

View file

@ -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"

View file

@ -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;