Files
web-at-transit/backend/src/api/list_images/service.rs
T
2026-05-24 22:55:17 +07:00

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?)
}