misc_pterodactyl-panel/resources/scripts/api/admin/nodes/allocations/deleteAllocation.ts
2021-10-03 16:28:58 -06:00

9 lines
310 B
TypeScript

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