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.
14 lines
427 B
14 lines
427 B
|
5 years ago
|
use crate::{ConduitResult, Error};
|
||
|
|
use ruma::api::client::{error::ErrorKind, r0::message::create_message_event};
|
||
|
|
|
||
|
|
#[cfg(feature = "conduit_bin")]
|
||
|
|
use rocket::get;
|
||
|
|
|
||
|
|
#[cfg_attr(feature = "conduit_bin", get("/_matrix/client/r0/voip/turnServer"))]
|
||
|
|
pub fn turn_server_route() -> ConduitResult<create_message_event::Response> {
|
||
|
|
Err(Error::BadRequest(
|
||
|
|
ErrorKind::NotFound,
|
||
|
|
"There is no turn server yet.",
|
||
|
|
))
|
||
|
|
}
|