Skip to main content

build_router

Function build_router 

Source
fn build_router(admin_config: &AdminConfig, state: Arc<SharedState>) -> Router
Expand description

Builds the admin router: authed API routes, plus — only when compiled with the ui feature AND admin.ui_enabled is true — the unauthenticated SPA fallback. Without it, non-API paths get axum’s default 404.