2020-07-30 16:14:47 +00:00
|
|
|
use crate::{ConduitResult, Error};
|
2020-08-12 21:32:39 +00:00
|
|
|
use ruma::api::client::{error::ErrorKind, r0::message::send_message_event};
|
2020-07-30 16:14:47 +00:00
|
|
|
|
|
|
|
#[cfg(feature = "conduit_bin")]
|
|
|
|
use rocket::get;
|
|
|
|
|
|
|
|
#[cfg_attr(feature = "conduit_bin", get("/_matrix/client/r0/voip/turnServer"))]
|
2020-08-12 21:32:39 +00:00
|
|
|
pub fn turn_server_route() -> ConduitResult<send_message_event::Response> {
|
2020-07-30 16:14:47 +00:00
|
|
|
Err(Error::BadRequest(
|
|
|
|
ErrorKind::NotFound,
|
|
|
|
"There is no turn server yet.",
|
|
|
|
))
|
|
|
|
}
|