Can use backup routes from API
This commit is contained in:
@ -18,6 +18,7 @@ pub struct CreateTokenBody {
|
||||
right_file: bool,
|
||||
right_auth: bool,
|
||||
right_stats: bool,
|
||||
right_backup: bool,
|
||||
}
|
||||
|
||||
#[derive(serde::Serialize)]
|
||||
@ -63,6 +64,7 @@ pub async fn create(auth: AuthExtractor, req: web::Json<CreateTokenBody>) -> Htt
|
||||
right_file: req.right_file,
|
||||
right_auth: req.right_auth,
|
||||
right_stats: req.right_stats,
|
||||
right_backup: req.right_backup,
|
||||
})
|
||||
.await?;
|
||||
|
||||
|
Reference in New Issue
Block a user