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

17 lines
467 B
Rust
Raw Normal View History

use crate::{Result, Ruma};
2022-02-18 15:33:14 +01:00
use ruma::api::client::thirdparty::get_protocols;
2020-07-30 18:14:47 +02:00
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
pub async fn get_protocols_route(
2022-04-06 21:31:29 +02:00
_body: Ruma<get_protocols::v3::IncomingRequest>,
2022-02-18 15:33:14 +01:00
) -> Result<get_protocols::v3::Response> {
// TODO
2022-02-18 15:33:14 +01:00
Ok(get_protocols::v3::Response {
2020-07-30 18:14:47 +02:00
protocols: BTreeMap::new(),
})
2020-07-30 18:14:47 +02:00
}