Conduit is a simple, fast and reliable chat server powered by Matrix https://conduit.rs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
482 B
19 lines
482 B
use crate::ConduitResult; |
|
use ruma::api::client::r0::thirdparty::get_protocols; |
|
|
|
use log::warn; |
|
#[cfg(feature = "conduit_bin")] |
|
use rocket::get; |
|
use std::collections::BTreeMap; |
|
|
|
#[cfg_attr( |
|
feature = "conduit_bin", |
|
get("/_matrix/client/r0/thirdparty/protocols") |
|
)] |
|
pub async fn get_protocols_route() -> ConduitResult<get_protocols::Response> { |
|
warn!("TODO: get_protocols_route"); |
|
Ok(get_protocols::Response { |
|
protocols: BTreeMap::new(), |
|
} |
|
.into()) |
|
}
|
|
|