1use std::sync::Arc; 2 3use axum::{Router, routing::get}; 4 5use crate::state::AppState; 6 7pub mod index; 8 9pub fn build(state: Arc<AppState>) -> Router { 10 Router::new() 11 .route("/", get(index::handle)) 12 .with_state(state) 13}