mirror of
https://gitlab.com/famedly/conduit.git
synced 2025-01-10 08:14:45 +00:00
20 lines
462 B
Rust
20 lines
462 B
Rust
use crate::ConduitResult;
|
|
use ruma::api::client::r0::thirdparty::get_protocols;
|
|
|
|
#[cfg(feature = "conduit_bin")]
|
|
use rocket::get;
|
|
use std::collections::BTreeMap;
|
|
|
|
#[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())
|
|
}
|