misc_pterodactyl-panel/resources/scripts/api/server/schedules/deleteSchedule.ts

10 lines
293 B
TypeScript
Raw Permalink Normal View History

import http from '@/api/http';
export default (uuid: string, schedule: number): Promise<void> => {
return new Promise((resolve, reject) => {
http.delete(`/api/client/servers/${uuid}/schedules/${schedule}`)
.then(() => resolve())
.catch(reject);
});
};