//! Static-file server for agent-generated report folders.
//!
//! Reports embed iframes that fetch trace `.bin` files from relative paths.
//! Browsers block `fetch()` over `file://`, so reports must be served via
//! HTTP. This module provides a minimal `axum::Router` that serves a
//! single directory.
//!
//! Wired up to the CLI as `dial9 report serve <dir>`.
use Path;
use Router;
use ServeDir;
/// Build an `axum::Router` that serves static files from `dir`.
///
/// Requests to `/` are mapped to `index.html` (if it exists). Missing
/// files return `404 Not Found`. The server enforces no auth and follows
/// no symlinks outside `dir` (default `ServeDir` behavior).