Finalize API key management for accounts

This commit is contained in:
Dane Everitt
2020-03-22 19:10:49 -07:00
parent 3ef649d984
commit 8d52e2e1a7
6 changed files with 154 additions and 29 deletions

View 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);
});
};