pub fn build_router(state: AppState) -> RouterExpand description
Build the axum [Router] with all routes and middleware attached.
ยงExample
use stygian_graph::application::api_server::{build_router, AppState};
let state = AppState::new("my-secret-key");
let app = build_router(state);