misc_pterodactyl-panel/resources/scripts/api/server/backups/index.ts

6 lines
205 B
TypeScript
Raw Normal View History

2021-01-31 02:01:32 +00:00
import http from '@/api/http';
export const restoreServerBackup = async (uuid: string, backup: string): Promise<void> => {
await http.post(`/api/client/servers/${uuid}/backups/${backup}/restore`);
};