Expand description
§Static Router
(For Axum)
Provides a macro to generate a static file router that serves the directory dynamically in debug mode and statically embeds the files and routes in release mode.
§License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
To get started, see the static_router!
macro.
Macros§
- static_
router - Create a static files router with the given name and static directory path.