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

@@ -20,6 +20,7 @@ pub struct NewTokenInfo {
pub right_file: bool,
pub right_auth: bool,
pub right_stats: bool,
pub right_backup: bool,
}
/// Create a new token
@@ -41,6 +42,7 @@ pub async fn create(new_token: NewTokenInfo) -> anyhow::Result<Token> {
right_inbox: new_token.right_inbox,
right_file: new_token.right_file,
right_stats: new_token.right_stats,
right_backup: new_token.right_backup,
};
let res = diesel::insert_into(tokens::table)