add handler code and basic csrf protection

This commit is contained in:
Jackzie 2025-04-15 21:36:45 -05:00
parent 1c561e58f7
commit dc21e50a8a
9 changed files with 117 additions and 29 deletions

3
server/Cargo.lock generated
View file

@ -2323,6 +2323,7 @@ dependencies = [
"humanize-bytes",
"int-enum",
"log",
"rand 0.9.0",
"rocket",
"rocket-session-store",
"rocket_dyn_templates",
@ -2331,6 +2332,7 @@ dependencies = [
"sqlx",
"tokio",
"tracing-subscriber",
"uuid",
]
[[package]]
@ -2745,6 +2747,7 @@ version = "1.16.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "458f7a779bf54acc9f347480ac654f68407d3aab21269a6e3c9f922acd9e2da9"
dependencies = [
"getrandom 0.3.2",
"serde",
]