little-hesinde/rusty-library/src/handlers/books.rs

11 lines
211 B
Rust
Raw Normal View History

2024-05-06 08:55:18 +00:00
use std::sync::Arc;
use poem::{handler, web::Data};
use crate::app_state::AppState;
#[handler]
pub async fn handler(state: Data<&Arc<AppState>>) -> Result<String, poem::Error> {
Ok("books".to_string())
}