assets.rs
13 lignes · 456 octets
//! Ressources statiques embarquées dans le binaire (aucun CDN), servies par le crate `commun` //! (OI-169) : `app.css` compilé par `commun/build.rs`, le reste de `commun/static/`. use axum::{extract::Path, response::Response}; use crate::errors::not_found; pub async fn serve(Path(path): Path<String>) -> Response { match open_iam_commun::ressources::statique(&path) { Some(reponse) => reponse, None => not_found().await, } }
GitRust