10 lines
310 B
TypeScript
10 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);
|
||
|
});
|
||
|
};
|