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

11 lines
213 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("authors".to_string())
}