Améliorations
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user