mirror of https://gitlab.com/famedly/conduit
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
594 B
Rust
23 lines
594 B
Rust
use crate::ConduitResult;
|
|
use ruma::api::client::r0::thirdparty::get_protocols;
|
|
|
|
#[cfg(feature = "conduit_bin")]
|
|
use rocket::get;
|
|
use std::collections::BTreeMap;
|
|
|
|
/// # `GET /_matrix/client/r0/thirdparty/protocols`
|
|
///
|
|
/// TODO: Fetches all metadata about protocols supported by the homeserver.
|
|
#[cfg_attr(
|
|
feature = "conduit_bin",
|
|
get("/_matrix/client/r0/thirdparty/protocols")
|
|
)]
|
|
#[tracing::instrument]
|
|
pub async fn get_protocols_route() -> ConduitResult<get_protocols::Response> {
|
|
// TODO
|
|
Ok(get_protocols::Response {
|
|
protocols: BTreeMap::new(),
|
|
}
|
|
.into())
|
|
}
|