()
| 44 | } |
| 45 | |
| 46 | pub async fn get_algorithms() -> HashMap<String, String> { |
| 47 | let mut out: HashMap<String, String> = HashMap::new(); |
| 48 | |
| 49 | let algos = ADR_ALGORITHMS.read().await; |
| 50 | for (_, v) in algos.iter() { |
| 51 | out.insert(v.get_id(), v.get_name()); |
| 52 | } |
| 53 | |
| 54 | out |
| 55 | } |
| 56 | |
| 57 | pub async fn handle(algo_id: &str, req: &Request) -> Response { |
| 58 | let algos = ADR_ALGORITHMS.read().await; |
no test coverage detected