Added autoreload

This commit is contained in:
Manuel Forcén Muñoz 2024-05-21 22:59:26 +02:00
parent 1ad1e66470
commit c9e621571c
4 changed files with 29 additions and 0 deletions

View file

@ -28,6 +28,8 @@ async fn main() {
tmpls: Arc::new(tmpls),
};
let exec_id: u32 = rand::random();
let app = Router::new()
.nest(
"/",
@ -69,6 +71,10 @@ async fn main() {
Router::new()
.route("/styles.css", get(routes::static_routes::styles))
.route("/csv.js", get(routes::static_routes::csv)),
)
.route(
"/execution",
get(move || async move { format!("{exec_id}") }),
),
)
.nest(