fix(api): drop redundant dev-deps; fix server AppState for cookie_secure; add logout + illegal-transition tests
This commit is contained in:
@@ -138,6 +138,8 @@ pub(crate) async fn set_visibility(
|
||||
Path(id): Path<String>,
|
||||
Json(req): Json<VisibilityRequest>,
|
||||
) -> Result<StatusCode, StatusCode> {
|
||||
// 404 (not 400) for an unparseable id — same non-leaking convention as the public
|
||||
// surface: never reveal whether an id could exist.
|
||||
let object_id = id.parse::<ObjectId>().map_err(|_| StatusCode::NOT_FOUND)?;
|
||||
|
||||
let mut tx = state
|
||||
|
||||
Reference in New Issue
Block a user