Function
delete_auth
(
State(state): State<Arc<ServerState>>,
Path(id): Path<String>,
)
Source from the content-addressed store, hash-verified
| 4504 | } |
| 4505 | |
| 4506 | async fn delete_auth( |
| 4507 | State(state): State<Arc<ServerState>>, |
| 4508 | Path(id): Path<String>, |
| 4509 | ) -> Result<Json<serde_json::Value>> { |
| 4510 | state.auth_manager.remove(&id).await; |
| 4511 | Ok(Json(serde_json::json!({ "deleted": true }))) |
| 4512 | } |
| 4513 | |
| 4514 | fn parse_auth_info_payload(payload: serde_json::Value) -> Option<AuthInfo> { |
| 4515 | if let Ok(auth) = serde_json::from_value::<AuthInfo>(payload.clone()) { |
Callers
nothing calls this directly
Tested by
no test coverage detected