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

@ -17,6 +17,7 @@ pub struct CreateTokenBody {
right_inbox: bool,
right_file: bool,
right_auth: bool,
right_stats: bool,
}
#[derive(serde::Serialize)]
@ -61,6 +62,7 @@ pub async fn create(auth: AuthExtractor, req: web::Json<CreateTokenBody>) -> Htt
right_inbox: req.right_inbox,
right_file: req.right_file,
right_auth: req.right_auth,
right_stats: req.right_stats,
})
.await?;