misc_pterodactyl-panel/resources/scripts/api/admin/nodes/allocations/deleteAllocation.ts

10 lines
310 B
TypeScript
Raw Normal View History

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