hyperlane-plugin-static-files 22.0.6

A static file plugin for the Hyperlane framework, serving the files of a directory with the content type of the framework.
Documentation
1
2
3
4
5
6
7
8
/// The name of the route parameter that carries the path of the file.
pub(crate) const PARAM_PATH: &str = "path";

/// The pattern of a route that serves the files under a prefix.
pub(crate) const PATTERN_FORMAT: &str = "{prefix}/{path:.*}";

/// The file that answers a request for a directory.
pub(crate) const INDEX_DEFAULT: &str = "index.html";