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.
18 lines
545 B
18 lines
545 B
use crate::ConduitResult; |
|
use ruma::api::client::r0::voip::get_turn_server_info; |
|
use std::time::Duration; |
|
|
|
#[cfg(feature = "conduit_bin")] |
|
use rocket::get; |
|
|
|
#[cfg_attr(feature = "conduit_bin", get("/_matrix/client/r0/voip/turnServer"))] |
|
#[tracing::instrument] |
|
pub async fn turn_server_route() -> ConduitResult<get_turn_server_info::Response> { |
|
Ok(get_turn_server_info::Response { |
|
username: "".to_owned(), |
|
password: "".to_owned(), |
|
uris: Vec::new(), |
|
ttl: Duration::from_secs(60 * 60 * 24), |
|
} |
|
.into()) |
|
}
|
|
|