Add support for statistics routes

This commit is contained in:
2025-05-02 08:56:51 +02:00
parent 7c0d758839
commit 16ef1147fe
9 changed files with 33 additions and 2 deletions

View File

@ -145,7 +145,8 @@ impl FromRequest for AuthExtractor {
|| (uri.starts_with("/api/movement") && token.right_movement)
|| (uri.starts_with("/api/inbox") && token.right_inbox)
|| (uri.starts_with("/api/file") && token.right_file)
|| (uri.starts_with("/api/auth/") && token.right_auth);
|| (uri.starts_with("/api/auth/") && token.right_auth)
|| (uri.starts_with("/api/stats") && token.right_stats);
if !authorized {
return Err(actix_web::error::ErrorBadRequest(