Finalize API key management for accounts
This commit is contained in:
parent
3ef649d984
commit
8d52e2e1a7
6 changed files with 154 additions and 29 deletions
9
resources/scripts/api/account/deleteApiKey.ts
Normal file
9
resources/scripts/api/account/deleteApiKey.ts
Normal file
|
@ -0,0 +1,9 @@
|
|||
import http from '@/api/http';
|
||||
|
||||
export default (identifier: string): Promise<void> => {
|
||||
return new Promise((resolve, reject) => {
|
||||
http.delete(`/api/client/account/api-keys/${identifier}`)
|
||||
.then(() => resolve())
|
||||
.catch(reject);
|
||||
});
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue