summaryrefslogtreecommitdiff
path: root/src/api/client_server/thirdparty.rs
blob: c2c1adfdf8e1b71d4480abb98c2f03a19f31837b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::{Result, Ruma};
use ruma::api::client::thirdparty::get_protocols;

use std::collections::BTreeMap;

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