Handler for all embedded static assets
(uri: axum::http::Uri)
| 84 | |
| 85 | // Handler for all embedded static assets |
| 86 | pub async fn static_handler(uri: axum::http::Uri) -> impl IntoResponse { |
| 87 | let path = uri.path().trim_start_matches('/'); |
| 88 | serve_embedded_file(path).await |
| 89 | } |
| 90 | |
| 91 | // Function to verify that essential files are embedded |
| 92 | pub fn verify_essential_files() -> Result<(), Vec<&'static str>> { |
nothing calls this directly
no test coverage detected