Skip to main content

Module routes

Module routes 

Source
Expand description

Provides the server route builder.

It includes discovery endpoints and applies the federation setting.

Re-exportsยง

use axum::Router; ๐Ÿ”’
use axum::response::IntoResponse; ๐Ÿ”’
use axum::routing::any; ๐Ÿ”’
use axum::routing::get; ๐Ÿ”’
use tuwunel_api::router::RouterExt; ๐Ÿ”’
use tuwunel_core::Server; ๐Ÿ”’
use tuwunel_core::err; ๐Ÿ”’
use crate as federation; ๐Ÿ”’
use crate::State; ๐Ÿ”’

Functionsยง

build
Builds the server endpoint routes.
federation_disabled ๐Ÿ”’
register_federation_routes ๐Ÿ”’
register_server_misc_routes ๐Ÿ”’