1 2 3 4 5 6 7 8 9 10 11
use axum::{ Router, routing::post, }; use crate::state::AppState; use std::sync::Arc; pub fn routes() -> Router<Arc<AppState>> { Router::new() .route("/", post(crate::handlers::search::search)) }