misc_pterodactyl-panel/resources/scripts/api/admin/locations/deleteLocation.ts
2022-12-15 19:06:14 -07:00

9 lines
256 B
TypeScript

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