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

5 lines
190 B
TypeScript
Raw Permalink Normal View History

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