misc_pterodactyl-panel/resources/scripts/api/admin/nests/eggs/deleteEgg.ts
2021-01-06 16:38:39 -07:00

9 lines
251 B
TypeScript

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