7
0
mirror of https://github.com/pelican-dev/panel.git synced 2025-06-03 12:09:00 +02:00
2021-03-12 14:47:49 -07:00

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,
});
};