grapevine/src/api/client_server/thirdparty.rs
Charles Hall f8961d5578
rename Ruma to Ar
This follows the pattern of the previous commit.
2024-05-19 19:04:20 -07:00

17 lines
475 B
Rust

use std::collections::BTreeMap;
use ruma::api::client::thirdparty::get_protocols;
use crate::{Ar, Ra, Result};
/// # `GET /_matrix/client/r0/thirdparty/protocols`
///
/// TODO: Fetches all metadata about protocols supported by the homeserver.
pub(crate) async fn get_protocols_route(
_body: Ar<get_protocols::v3::Request>,
) -> Result<Ra<get_protocols::v3::Response>> {
// TODO
Ok(Ra(get_protocols::v3::Response {
protocols: BTreeMap::new(),
}))
}