misc_pterodactyl-panel/resources/scripts/api/account/ssh/deleteSSHKey.ts

9 lines
253 B
TypeScript

import http from '@/api/http';
export default (id: number): Promise<void> => {
return new Promise((resolve, reject) => {
http.delete(`/api/client/account/ssh/${id}`)
.then(() => resolve())
.catch(reject);
});
};