mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 13:24:46 +02:00
15 lines
379 B
TypeScript
15 lines
379 B
TypeScript
import http from '@/api/http';
|
|
|
|
interface Data {
|
|
to: string;
|
|
from: string;
|
|
}
|
|
|
|
export default (uuid: string, directory: string, files: Data[]): Promise<void> => {
|
|
return new Promise((resolve, reject) => {
|
|
http.put(`/api/client/servers/${uuid}/files/rename`, { root: directory, files })
|
|
.then(() => resolve())
|
|
.catch(reject);
|
|
});
|
|
};
|