Function build_router
Source pub fn build_router(state: AppState) -> Router
Expand 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);