use std::sync::Arc; use poem::{handler, web::Data}; use crate::app_state::AppState; #[handler] pub async fn handler(state: Data<&Arc>) -> Result { Ok("authors".to_string()) }