1
0
Fork 0

admin_add_key should use post

This commit is contained in:
Cyborus 2023-12-12 13:40:08 -05:00
parent 078aa2ef5c
commit 75d19e77db
No known key found for this signature in database

View file

@ -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> {