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

8 lines
252 B
TypeScript
Raw Normal View History

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