admin_add_key should use post
				
					
				
			This commit is contained in:
		
							parent
							
								
									078aa2ef5c
								
							
						
					
					
						commit
						75d19e77db
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -104,7 +104,7 @@ impl Forgejo {
 | 
			
		|||
        user: &str,
 | 
			
		||||
        opt: CreateKeyOption,
 | 
			
		||||
    ) -> Result<PublicKey, ForgejoError> {
 | 
			
		||||
        self.patch(&format!("admin/users/{user}/keys"), &opt).await
 | 
			
		||||
        self.post(&format!("admin/users/{user}/keys"), &opt).await
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    pub async fn admin_delete_key(&self, user: &str, id: u64) -> Result<(), ForgejoError> {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue