26 lines
842 B
Rust
26 lines
842 B
Rust
//! Enhance on demand (#192): run a ComfyUI restore/edit workflow on a photo
|
|
//! from the apps, approve the result in-app, and have it land in the library
|
|
//! as a version (#191).
|
|
//!
|
|
//! - [`config`]: `enhance.toml` (templates, path map, timings).
|
|
//! - [`template`]: workflow loading/validation and per-photo filling.
|
|
//! - [`comfy`]: the ComfyUI HTTP calls used.
|
|
//! - [`service`]: submit, poll, approve, idle `/free`.
|
|
//! - [`handlers`]: the HTTP endpoints.
|
|
//!
|
|
//! ImageApi never writes under a library root: ComfyUI writes the approved
|
|
//! file, ImageApi only ingests it.
|
|
|
|
pub mod comfy;
|
|
pub mod config;
|
|
pub mod handlers;
|
|
pub mod path_map;
|
|
pub mod service;
|
|
pub mod template;
|
|
|
|
#[cfg(test)]
|
|
mod integration_tests;
|
|
|
|
pub use handlers::{approve, discard, get_job, get_templates, list_jobs, preview, submit};
|
|
pub use service::EnhanceService;
|