potree-auth 0.1.0

Authentication and project management for `potree` point clouds.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use super::super::application::error::PotreeAssetsServiceError;
use crate::common::utils::http::api_error::ApiError;

impl From<PotreeAssetsServiceError> for ApiError {
    fn from(value: PotreeAssetsServiceError) -> Self {
        match value {
            PotreeAssetsServiceError::AssetNotFound { path } => Self::ResourceNotFound {
                resource_name: path.to_string_lossy().to_string(),
            },
        }
    }
}