11 lines
213 B
Rust
11 lines
213 B
Rust
|
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())
|
||
|
}
|