potree-auth 0.1.0

Authentication and project management for `potree` point clouds.
Documentation
use askama::Template;
use web_route::WebRoute;

use crate::project::domain::ProjectName;

/// Represents the the `potree` render page. Populates and renders the
/// `potree_render.html` template.
///
/// This assumes that there is a `potree` config file fully defining the
/// project.
#[derive(Debug, Template)]
#[template(path = "potree_render/index.html")]
pub struct PotreeRender {
    /// The title of the project to render.
    pub project_title: ProjectName,

    /// The path where the `potree` static assets are served.
    pub potree_static_assets_path: WebRoute,

    /// The path to the `potree` project config file.
    pub potree_config_path: WebRoute,
}