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

4 lines
190 B
TypeScript

import http from '@/api/http';
export default async (server: string, schedule: number): Promise<void> =>
await http.post(`/api/client/servers/${server}/schedules/${schedule}/execute`);