Commit Graph

2 Commits

Author SHA1 Message Date
Brummel 0d5c2f5888 Formatting 2026-04-19 15:35:10 +02:00
Brummel 16c6fb2e07 refactor(server): introduce CaseId newtype with typed Path extractor
Replace five duplicated uuid::Uuid::parse_str calls in web handlers
(analyze, document view, delete, reset, case detail) with a
CaseIdPath extractor that validates the URL segment once and
returns the legacy "Invalid case_id" 400 body byte-for-byte.

The extractor uses axum's FromRequestParts and maps any failure
to AppError::BadRequest, so IntoResponse handling is unchanged.
2026-04-19 15:05:46 +02:00