Can use backup routes from API

This commit is contained in:
2025-05-02 15:31:29 +02:00
parent e159d3c963
commit c68ddffc5e
9 changed files with 32 additions and 2 deletions

View File

@ -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?;