misc_pterodactyl-panel/resources/scripts/api/admin/eggs/deleteEggVariable.ts
2022-12-15 19:06:14 -07: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);
});
};