Macro mz_http_util::make_handle_static

source ยท
macro_rules! make_handle_static {
    ($static_dir:expr, $prod_base_path:expr, $dev_base_path:expr) => { ... };
}
Expand description

Generates a handle_static function that serves static content for HTTP servers. Expects three arguments: an include_dir::Dir object where the static content is served, and two strings representing the (crate-local) paths to the production and development static files.