Skip to main content

Module routes

Module routes 

Source
Expand description

Provides the client route builder.

It assembles client endpoints using the server configuration.

Re-exportsยง

use axum::Router; ๐Ÿ”’
use axum::response::IntoResponse; ๐Ÿ”’
use axum::routing::MethodRouter; ๐Ÿ”’
use axum::routing::any; ๐Ÿ”’
use axum::routing::get; ๐Ÿ”’
use axum::routing::post; ๐Ÿ”’
use axum::routing::put; ๐Ÿ”’
use const_str::concat; ๐Ÿ”’
use const_str::join; ๐Ÿ”’
use const_str::replace; ๐Ÿ”’
use http::HeaderValue; ๐Ÿ”’
use http::header; ๐Ÿ”’
use ruma::api::IncomingRequest; ๐Ÿ”’
use ruma::api::client::message::send_message_event; ๐Ÿ”’
use ruma::api::client::state::send_state_event; ๐Ÿ”’
use ruma::api::path_builder::PathBuilder; ๐Ÿ”’
use tower_http::set_header::SetResponseHeaderLayer; ๐Ÿ”’
use tuwunel_api::router::RouterExt; ๐Ÿ”’
use tuwunel_core::Server; ๐Ÿ”’
use tuwunel_core::err; ๐Ÿ”’
use crate as client; ๐Ÿ”’
use crate::State; ๐Ÿ”’
use crate::put_msc4388_route; ๐Ÿ”’
use crate::send_message_event_or_delayed_route; ๐Ÿ”’
use crate::send_state_event_or_delayed_route; ๐Ÿ”’
use crate::sso_callback_route; ๐Ÿ”’

Functionsยง

build
Builds the client endpoint routes.
legacy_media_disabled ๐Ÿ”’
media_content_headers ๐Ÿ”’
register_client_auth_routes ๐Ÿ”’
register_client_keys_and_backup_routes ๐Ÿ”’
register_client_media_and_device_routes ๐Ÿ”’
register_client_misc_routes ๐Ÿ”’
register_client_profile_and_data_routes ๐Ÿ”’
register_client_room_routes ๐Ÿ”’
register_client_state_and_sync_routes ๐Ÿ”’
register_delayed_event_routes ๐Ÿ”’
register_legacy_media_routes ๐Ÿ”’
register_rendezvous_routes ๐Ÿ”’
route_paths ๐Ÿ”’
Registers one handler at every path a Ruma request type declares.