mirror of
https://github.com/pterodactyl/panel.git
synced 2026-02-06 15:07:05 -06:00
8 lines
252 B
TypeScript
8 lines
252 B
TypeScript
import http from '@/api/http';
|
|
|
|
export const restoreServerBackup = async (uuid: string, backup: string, truncate?: boolean): Promise<void> => {
|
|
await http.post(`/api/client/servers/${uuid}/backups/${backup}/restore`, {
|
|
truncate,
|
|
});
|
|
};
|