Can use backup routes from API
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user