misc_pterodactyl-panel/resources/scripts/api/admin/eggs/deleteEggVariable.ts
2021-10-03 16:07:13 -06:00

9 lines
301 B
TypeScript

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