Use a post request to delete SSH keys, some hashes use slashes which cause 404 errors; closes #4100
This commit is contained in:
parent
5143faa4b1
commit
03a497fb8a
5 changed files with 24 additions and 17 deletions
|
@ -23,6 +23,6 @@ const createSSHKey = async (name: string, publicKey: string): Promise<SSHKey> =>
|
|||
};
|
||||
|
||||
const deleteSSHKey = async (fingerprint: string): Promise<void> =>
|
||||
await http.delete(`/api/client/account/ssh-keys/${fingerprint}`);
|
||||
await http.post('/api/client/account/ssh-keys/remove', { fingerprint });
|
||||
|
||||
export { useSSHKeys, createSSHKey, deleteSSHKey };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue