1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2025-06-27 16:35:59 +00:00
conduit/src/client_server/thirdparty.rs

19 lines
513 B
Rust
Raw Normal View History

2022-01-20 11:51:31 +01:00
use crate::{ConduitResult, Ruma};
2020-07-30 18:14:47 +02:00
use ruma::api::client::r0::thirdparty::get_protocols;
use std::collections::BTreeMap;
2021-08-31 19:14:37 +02:00
/// # `GET /_matrix/client/r0/thirdparty/protocols`
///
/// TODO: Fetches all metadata about protocols supported by the homeserver.
2022-01-20 11:51:31 +01:00
#[tracing::instrument(skip(_body))]
pub async fn get_protocols_route(
_body: Ruma<get_protocols::Request>,
) -> ConduitResult<get_protocols::Response> {
// TODO
2020-07-30 18:14:47 +02:00
Ok(get_protocols::Response {
protocols: BTreeMap::new(),
}
.into())
}