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> {
|
2021-03-23 22:01:14 +01:00
|
|
|
// TODO
|
2020-07-30 18:14:47 +02:00
|
|
|
Ok(get_protocols::Response {
|
|
|
|
protocols: BTreeMap::new(),
|
|
|
|
}
|
|
|
|
.into())
|
|
|
|
}
|