docs: Move documentation on code

This commit is contained in:
Simon C
2024-08-09 01:41:03 +02:00
parent 73f45442b6
commit 0c8e417f11
2 changed files with 2 additions and 2 deletions

View File

@ -7,6 +7,8 @@ use std::path::Path;
use tokio::net::TcpListener;
use tower_livereload::LiveReloadLayer;
// Nous filtrons les requêtes de `htmx` pour ne pas inclure le script _JS_ qui gère le rechargement
// Voir https://github.com/leotaku/tower-livereload/pull/3
fn not_htmx_predicate<T>(req: &Request<T>) -> bool {
!req.headers().contains_key("hx-request")
}