Add support for statistics routes
This commit is contained in:
@ -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(
|
||||
|
Reference in New Issue
Block a user