Améliorations

This commit is contained in:
oussi
2026-04-20 16:47:15 +02:00
parent ddfa84cfea
commit ca69337afb
102 changed files with 915 additions and 97 deletions

View File

@@ -28,7 +28,7 @@ use routes::{
update_amadea_log_path, update_user_thresholds,
},
alerts::{alerts_get, clear_alerts},
users::{users_get, api_users, api_users_weekly},
users::{users_get, api_users, api_users_weekly, api_users_day},
};
pub async fn run_server() {
@@ -87,6 +87,7 @@ pub async fn run_server() {
.route("/users", get(users_get))
.route("/api/users", get(api_users))
.route("/api/users/activity/weekly", get(api_users_weekly))
.route("/api/users/day/:date", get(api_users_day))
.nest_service("/static", ServeDir::new("static"))
.layer(session_layer)
.with_state(state.clone())