ref_solver/web/mod.rs
1//! Web server for browser-based reference identification.
2//!
3//! This module provides an interactive web interface using Axum and HTMX.
4//! Users can paste SAM headers or upload files to identify references.
5//!
6//! ## Starting the Server
7//!
8//! ```text
9//! # Start on default port 8080
10//! ref-finder serve
11//!
12//! # Custom port and auto-open browser
13//! ref-finder serve --port 3000 --open
14//!
15//! # Bind to all interfaces
16//! ref-finder serve --address 0.0.0.0
17//! ```
18//!
19//! ## API Endpoints
20//!
21//! - `GET /` - Main page with header input form
22//! - `POST /api/identify` - Identify reference from header (multipart form)
23//! - `GET /api/catalog` - List all references in the catalog
24
25pub mod format_detection;
26pub mod server;