use anyhow::Result; use uuid::Uuid; use crate::collections::types::{CollectionState, GetCollectionRequest}; /// Handler for getting a single collection by ID /// /// # Arguments /// * `user_id` - The ID of the user requesting the collection /// * `req` - The request containing the collection ID /// /// # Returns /// * `Result` - The collection state if found and accessible pub async fn get_collection_handler( user_id: &Uuid, req: GetCollectionRequest, ) -> Result { // Reuse the existing collection_utils function let collection = database::utils::collections::get_collection_by_id(user_id, &req.id).await?; Ok(collection) }