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