tuwunel_api/client/thirdparty.rs
1use std::collections::BTreeMap;
2
3use ruma::api::client::thirdparty::get_protocols;
4use tuwunel_core::Result;
5
6use crate::Ruma;
7
8/// # `GET /_matrix/client/r0/thirdparty/protocols`
9///
10/// TODO: Fetches all metadata about protocols supported by the homeserver.
11pub(crate) async fn get_protocols_route(
12 _body: Ruma<get_protocols::v3::Request>,
13) -> Result<get_protocols::v3::Response> {
14 // TODO
15 Ok(get_protocols::v3::Response { protocols: BTreeMap::new() })
16}