refactor: put endpoints into modules

This commit is contained in:
timokoesters 2020-07-30 18:14:47 +02:00
parent 485a24398b
commit c1c62b7eb4
No known key found for this signature in database
GPG key ID: 24DA7517711A2BA4
33 changed files with 4153 additions and 3848 deletions

13
src/client_server/voip.rs Normal file
View file

@ -0,0 +1,13 @@
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.",
))
}