7 lines
225 B
Rust
7 lines
225 B
Rust
use super::{dto::*, repo};
|
|
use crate::{error::AppResult, shared::ImageRef, state::AppState};
|
|
|
|
pub async fn handle(state: &AppState, q: &ListImagesQuery) -> AppResult<Vec<ImageRef>> {
|
|
Ok(repo::list(&state.db, q).await?)
|
|
}
|